Mercurial > hg > Members > shoshi > webvirt
view cake/tests/test_app/plugins/test_plugin/models/datasources/test_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 source
<?php class TestSource 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'); } }