PageRenderTime 52ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

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

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