mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-12-25 23:17:21 +00:00
28 lines
560 B
PHP
28 lines
560 B
PHP
|
<?php
|
||
|
class Test2Source extends DataSource {
|
||
|
|
||
|
function describe($model) {
|
||
|
return compact('model');
|
||
|
}
|
||
|
|
||
|
function listSources() {
|
||
|
return array('test_source');
|
||
|
}
|
||
|
|
||
|
function create($model, $fields = array(), $values = array()) {
|
||
|
return compact('model', 'fields', 'values');
|
||
|
}
|
||
|
|
||
|
function read($model, $queryData = array()) {
|
||
|
return compact('model', 'queryData');
|
||
|
}
|
||
|
|
||
|
function update($model, $fields = array(), $values = array()) {
|
||
|
return compact('model', 'fields', 'values');
|
||
|
}
|
||
|
|
||
|
function delete($model, $id) {
|
||
|
return compact('model', 'id');
|
||
|
}
|
||
|
}
|