2010-06-21 02:53:54 +00:00
|
|
|
<?php
|
|
|
|
class Test2Source 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-05-30 20:02:32 +00:00
|
|
|
public function listSources() {
|
2010-06-21 02:53:54 +00:00
|
|
|
return array('test_source');
|
|
|
|
}
|
|
|
|
|
2011-05-30 20:02:32 +00:00
|
|
|
public function create($model, $fields = array(), $values = array()) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model', 'fields', 'values');
|
|
|
|
}
|
|
|
|
|
2011-05-30 20:02:32 +00:00
|
|
|
public function read($model, $queryData = array()) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model', 'queryData');
|
|
|
|
}
|
|
|
|
|
2011-05-30 20:02:32 +00:00
|
|
|
public function update($model, $fields = array(), $values = array()) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model', 'fields', 'values');
|
|
|
|
}
|
|
|
|
|
2011-05-30 20:02:32 +00:00
|
|
|
public function delete($model, $id) {
|
2010-06-21 02:53:54 +00:00
|
|
|
return compact('model', 'id');
|
|
|
|
}
|
|
|
|
}
|