[ Index ] |
|
Code source de CakePHP 1.1.13.4450 |
[Code source] [Imprimer] [Statistiques]
DataSource base class Long description for file
Copyright: | Copyright 2005-2007, Cake Software Foundation, Inc. |
License: | http://www.opensource.org/licenses/mit-license.php The MIT License |
Version: | $Revision: 4409 $ |
Poids: | 485 lignes (11 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
DataSource:: (18 méthodes):
__construct()
isInterfaceSupported()
setConfig()
__cacheDescription()
conditions()
name()
value()
describe()
create()
read()
update()
delete()
fields()
getColumnType()
insertQueryData()
resolveKey()
getFieldValue()
__destruct()
Classe: DataSource - X-Ref
DataSource base class__construct() X-Ref |
Constructor. |
isInterfaceSupported($interface) X-Ref |
Returns true if the DataSource supports the given interface (method) param: string $interface The name of the interface (method) return: boolean True on success |
setConfig($config) X-Ref |
Sets the configuration for the DataSource param: array $config The configuration array return: void |
__cacheDescription($object, $data = null) X-Ref |
Cache the DataSource description param: string $object The name of the object (model) to cache param: mixed $data The description of the model, usually a string or array return: void |
conditions($conditions) X-Ref |
To-be-overridden in subclasses. return: string |
name($name) X-Ref |
To-be-overridden in subclasses. param: unknown_type $name return: unknown |
value($value) X-Ref |
To-be-overridden in subclasses. param: unknown_type $value return: unknown |
describe($model) X-Ref |
Returns a Model description (metadata) or null if none found. param: Model $model return: mixed |
create(&$model, $fields = null, $values = null) X-Ref |
To-be-overridden in subclasses. param: unknown_type $model param: unknown_type $fields param: unknown_type $values return: unknown |
read(&$model, $queryData = array() X-Ref |
To-be-overridden in subclasses. param: unknown_type $model param: unknown_type $queryData return: unknown |
update(&$model, $fields = null, $values = null) X-Ref |
To-be-overridden in subclasses. param: unknown_type $model param: unknown_type $fields param: unknown_type $values return: unknown |
delete(&$model, $id = null) X-Ref |
To-be-overridden in subclasses. param: unknown_type $model param: unknown_type $id |
fields($fields) X-Ref |
To-be-overridden in subclasses. param: mixed $fields return: mixed |
getColumnType(&$model, $fields) X-Ref |
To-be-overridden in subclasses. param: Model $model param: unknown_type $fields return: unknown |
insertQueryData($query, $data, $association, $assocData, &$model, &$linkModel, $stack) X-Ref |
Enter description here... param: unknown_type $query param: unknown_type $data param: unknown_type $association param: unknown_type $assocData param: Model $model param: Model $linkModel param: array $stack return: unknown |
resolveKey($model, $key) X-Ref |
To-be-overridden in subclasses. param: unknown_type $model param: unknown_type $key return: unknown |
getFieldValue($data, $path) X-Ref |
Gets a value from an array or object. The special {n}, as seen in the Model::generateList method, is taken care of here. param: array $data param: mixed $path As an array, or as a dot-separated string. return: array |
__destruct() X-Ref |
Closes the current datasource. |
Généré le : Sun Feb 25 19:27:47 2007 | par Balluche grâce à PHPXref 0.7 |