cakephp2-php8/lib/Cake/Test/test_app/Model/Datasource/Test2OtherSource.php

28 lines
683 B
PHP
Raw Normal View History

<?php
class Test2OtherSource 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');
}
2012-08-21 11:08:43 +00:00
public function read(Model $model, $queryData = array(), $recursive = null) {
return compact('model', 'queryData');
}
2012-08-21 11:08:43 +00:00
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');
}
}