2010-06-21 02:53:54 +00:00
|
|
|
<?php
|
|
|
|
class Test2OtherSource extends DataSource {
|
|
|
|
|
2011-05-30 20:02:32 +00:00
|
|
|
public function describe($model) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model');
|
|
|
|
}
|
|
|
|
|
2011-11-14 01:47:55 +00:00
|
|
|
public function listSources($data = null) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return array('test_source');
|
|
|
|
}
|
|
|
|
|
2011-11-14 01:47:55 +00:00
|
|
|
public function create(Model $model, $fields = null, $values = null) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model', 'fields', 'values');
|
|
|
|
}
|
|
|
|
|
2012-08-21 11:08:43 +00:00
|
|
|
public function read(Model $model, $queryData = array(), $recursive = null) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model', 'queryData');
|
|
|
|
}
|
|
|
|
|
2012-08-21 11:08:43 +00:00
|
|
|
public function update(Model $model, $fields = array(), $values = array(), $conditions = null) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model', 'fields', 'values');
|
|
|
|
}
|
|
|
|
|
2011-11-14 01:47:55 +00:00
|
|
|
public function delete(Model $model, $id = null) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model', 'id');
|
|
|
|
}
|
|
|
|
}
|