mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-29 18:27:19 +00:00
27 lines
678 B
PHP
27 lines
678 B
PHP
<?php
|
|
class Test2Source extends DataSource {
|
|
|
|
public function describe($model) {
|
|
return compact('model');
|
|
}
|
|
|
|
public function listSources($data = null) {
|
|
return array('test_source');
|
|
}
|
|
|
|
public function create(Model $model, $fields = null, $values = null) {
|
|
return compact('model', 'fields', 'values');
|
|
}
|
|
|
|
public function read(Model $model, $queryData = array(), $recursive = null) {
|
|
return compact('model', 'queryData');
|
|
}
|
|
|
|
public function update(Model $model, $fields = array(), $values = array(), $conditions = null) {
|
|
return compact('model', 'fields', 'values');
|
|
}
|
|
|
|
public function delete(Model $model, $id = null) {
|
|
return compact('model', 'id');
|
|
}
|
|
}
|