~tsep-dev/tsep/0.9-beta

« back to all changes in this revision

Viewing changes to branches/symfony/cake/tests/test_app/models/datasources/test2_other_source.php

  • Committer: geoffreyfishing
  • Date: 2011-01-11 23:46:12 UTC
  • Revision ID: svn-v4:ae0de26e-ed09-4cbe-9a20-e40b4c60ac6c::125
Created a symfony branch for future migration to symfony

Show diffs side-by-side

added added

removed removed

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