cakephp2-php8/lib/Cake/Test/test_app/Model/Datasource/Test2OtherSource.php
2011-05-13 01:53:49 -04:30

27 lines
565 B
PHP

<?php
class Test2OtherSource 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');
}
}