/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

  1. <?php
  2. class TestOtherSource extends DataSource {
  3. function describe($model) {
  4. return compact('model');
  5. }
  6. function listSources() {
  7. return array('test_source');
  8. }
  9. function create($model, $fields = array(), $values = array()) {
  10. return compact('model', 'fields', 'values');
  11. }
  12. function read($model, $queryData = array()) {
  13. return compact('model', 'queryData');
  14. }
  15. function update($model, $fields = array(), $values = array()) {
  16. return compact('model', 'fields', 'values');
  17. }
  18. function delete($model, $id) {
  19. return compact('model', 'id');
  20. }
  21. }