cakephp2-php8/lib/Cake/Test/test_app/Model/Datasource/Test2Source.php
mark_story 87f5b6cf26 Fix more strict errors.
Fix strict errors in test files.
Remove a test in CakeEmail as array -> string causes a notice
in PHP 5.4
2011-11-13 20:47:55 -05:00

27 lines
639 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()) {
return compact('model', 'queryData');
}
public function update(Model $model, $fields = array(), $values = array()) {
return compact('model', 'fields', 'values');
}
public function delete(Model $model, $id = null) {
return compact('model', 'id');
}
}