/code/ryzom/tools/server/www/webtt/cake/tests/test_app/plugins/test_plugin/models/datasources/test_other_source.php
https://bitbucket.org/mattraykowski/ryzomcore_demoshard · PHP · 27 lines · 21 code · 6 blank · 0 comment · 0 complexity · 03c6d34594bff3b7ced687af7799d929 MD5 · raw file
- <?php
- class TestOtherSource 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');
- }
- }