Adding stub datasource to test_app.

This commit is contained in:
jperras 2009-09-24 19:21:09 -04:00
parent ed74653d72
commit 0c0e5d111b

View file

@ -0,0 +1,30 @@
<?php
class TestSource 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');
}
}
?>