ryzomcore_demoshard /code/ryzom/tools/server/www/webtt/cake/tests/test_app/models/datasources/test2_other_source.php

Language PHP Lines 28
MD5 Hash 0369816d7971f4ef0238e172f96cd11f Estimated Cost $444 (why?)
Repository https://bitbucket.org/mattraykowski/ryzomcore_demoshard View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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');
	}
}
Back to Top