Mercurial > hg > Members > shoshi > webvirt
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cake/tests/test_app/models/datasources/test2_other_source.php Sun Jul 24 21:08:31 2011 +0900 @@ -0,0 +1,27 @@ +<?php +class Test2OtherSource extends DataSource { + + function describe($model) { + return compact('model'); + } + + function listSources() { + return array('test_source'); + } + + function create($model, $fields = array(), $values = array()) { + return compact('model', 'fields', 'values'); + } + + function read($model, $queryData = array()) { + return compact('model', 'queryData'); + } + + function update($model, $fields = array(), $values = array()) { + return compact('model', 'fields', 'values'); + } + + function delete($model, $id) { + return compact('model', 'id'); + } +}