Mercurial > hg > Members > shoshi > webvirt
comparison cake/tests/test_app/models/datasources/test2_other_source.php @ 0:261e66bd5a0c
hg init
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jul 2011 21:08:31 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:261e66bd5a0c |
---|---|
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 } |