PageRenderTime 25ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/code/ryzom/tools/server/www/webtt/cake/tests/test_app/models/datasources/test2_other_source.php

https://bitbucket.org/mattraykowski/ryzomcore_demoshard
PHP | 27 lines | 21 code | 6 blank | 0 comment | 0 complexity | 0369816d7971f4ef0238e172f96cd11f MD5 | raw file
Possible License(s): AGPL-3.0, GPL-3.0, LGPL-2.1
  1. <?php
  2. class Test2OtherSource 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. }