Abstract Class xPDOObject

Description

The base persistent xPDO object class.

This is the basis for the entire xPDO object model, and can also be used by a class generator xPDOGenerator, ultimately allowing custom classes to be user-defined in a web interface and framework-generated at runtime.

  • abstract: This is an abstract class, and is not represented by an actual table; it simply defines the member variables and functions needed for object persistence. All xPDOObject derivatives must define both a PHP 4 style constructor which calls a PHP 5 style __construct() method with the same parameters. This is necessary to allow instantiation of further derived classes without knowing the name of the class ahead of time in PHP 4. Note that this does not meet E_STRICT compliance in PHP 5, but is the only sane way to achieve consistency between the PHP 4 and 5 inheritence models.

Located in /om/xpdoobject.class.php (line 50)


	
			
Direct descendents
Class Description
 class xPDOObject_mysql Implements extensions to the base xPDOObject class for MySQL.
 class xPDOObject_sqlite Implements extensions to the base xPDOObject class for SQLite.
 class xPDOObject_sqlsrv Implements extensions to the base xPDOObject class for sqlsrv.
 class xPDOSimpleObject Extend to define a class with a native integer primary key field named id.
Variable Summary
 string $container
 array $fieldNames
 array $_aggregates
 string $_alias
 boolean $_cacheFlag
 string $_class
 array $_composites
 array $_dirty
 array $_fieldMeta
 array $_fields
 array $_lazy
 boolean $_new
 array $_options
 string $_package
 string|array $_pk
 string|array $_pktype
 string $_table
 string $_tableMeta
 array $_validated
Method Summary
 static string getSelectColumns (xPDO &$xpdo, string $className, [string $tableAlias = ''], [string $columnPrefix = ''], [array $columns = array ()], [boolean $exclude = false])
 static object|null load (xPDO &$xpdo, string $className, mixed $criteria, [boolean|integer $cacheFlag = true])
 static array loadCollection (xPDO &$xpdo, string $className, [mixed $criteria = null], [boolean|integer $cacheFlag = true])
 static array loadCollectionGraph (xPDO &$xpdo, string $className, string|array $graph, mixed $criteria, boolean|integer $cacheFlag)
 static void _loadCollectionInstance (xPDO &$xpdo,  &$objCollection, string $className, mixed $criteria,  $row,  $fromCache, [boolean|integer $cacheFlag = true])
 static xPDOObject _loadInstance (xPDO &$xpdo, string $className, mixed $criteria, array $row)
 static PDOStatement &_loadRows (xPDO &$xpdo, string $className, mixed $criteria)
 boolean addMany (mixed &$obj, [string $alias = ''])
 boolean addOne (mixed &$obj, [string $alias = ''])
 void addValidationRule (string $field, string $name, string $type, string $rule, [ $parameters = array()])
 string encode (string $source, [string $type = 'md5'])
 void fromArray (array $fldarray, [string $keyPrefix = ''], [boolean $setPrimaryKeys = false], [boolean $rawValues = false], [boolean $adhocValues = false])
 void fromJSON (string $jsonSource, [string $keyPrefix = ''], [boolean $setPrimaryKeys = false], [boolean $rawValues = false], [boolean $adhocValues = false])
 mixed get (string|array $k, [string|array $format = null], [mixed $formatTemplate = null])
 string getFieldName (string $k, [string $alias = null])
 void getFKClass (string $k)
 array getFKDefinition (string $alias)
 array &getMany (string $alias, [object $criteria = null], [boolean|integer $cacheFlag = true])
 xPDOObject|null &getOne (string $alias, [object $criteria = null], [boolean|integer $cacheFlag = true])
 mixed getOption (string $key)
 mixed getPK ()
 string getPKType ()
 mixed getPrimaryKey ([boolean $validateCompound = true])
 string|boolean getValidator ()
 boolean isDirty (string $key)
 boolean isLazy ([string $key = ''])
 boolean isNew ()
 boolean isValidated ([string $key = ''])
 boolean remove ([ $ancestors = array ()])
 void removeValidationRules ([string $field = null], [ $rules = array()])
 boolean save ([boolean|integer $cacheFlag = null])
 boolean set (string $k, [mixed $v = null], [string|callable $vType = ''])
 void setDirty ([string $key = ''])
 void setOption (string $key, mixed $value)
 array toArray ([string $keyPrefix = ''], [boolean $rawValues = false], [boolean $excludeLazy = false])
 string toJSON ([string $keyPrefix = ''], [boolean $rawValues = false])
 boolean validate ([ $options = array()])
 array _getAliases (string $class, [int $limit = 0])
 string _getDataType (string $key)
 string _getPHPType (string $key)
 array &_getRelatedObjectsByFK (string $alias, [mixed $criteria = null], [boolean|integer $cacheFlag = true])
 void _initFields ()
 void _loadFieldData (string|array $fields)
 void _loadValidation ([boolean $reload = false])
 boolean _saveRelatedObject (xPDOObject &$obj, array $fkMeta)
 integer _saveRelatedObjects ()
 boolean _setRaw (string $key, mixed $val)
Variables
string $container = null (line 63)

Name of the data source container the object belongs to.

  • access: public
array $fieldNames = null (line 73)

Names of the fields in the data table, fully-qualified with a table name.

NOTE: For use in table joins to qualify fields with the same name.

  • access: public
xPDO $xpdo = null (line 56)

A convenience reference to the xPDO object.

  • access: public
array $_aggregates = array () (line 157)

An array of aggregate foreign key relationships for the class.

  • access: public
string $_alias = null (line 91)

An alias for this instance of the class.

  • access: public
boolean $_cacheFlag = true (line 212)

Indicates the cacheability of the instance.

  • access: public
string $_class = null (line 79)

The actual class name of an instance.

  • access: public
array $_composites = array () (line 164)

An array of composite foreign key relationships for the class.

  • access: public
array $_dirty = array () (line 129)

An array of field names that have been modified.

  • access: public
array $_fieldMeta = array () (line 150)

An array of metadata definitions for each field in the class.

  • access: public
array $_fields = array () (line 143)

An array of key-value pairs representing the fields of the instance.

  • access: public
array $_lazy = array () (line 136)

An array of field names that have not been loaded from the source.

  • access: public
boolean $_new = true (line 206)

Indicates if the instance is transient (and thus new).

  • access: public
array $_options = array() (line 218)

A collection of various options that can be used on the instance.

  • access: public
string $_package = null (line 85)

The package the class is a part of.

  • access: public
string|array $_pk = null (line 98)

The primary key field (or an array of primary key fields) for this object.

  • access: public
string|array $_pktype = null (line 108)

The php native type of the primary key field.

NOTE: Will be an array if multiple primary keys are specified for the object.

  • access: public
array $_relatedObjects = array () (line 171)

An array of object instances related to this object instance.

  • access: public
string $_table = null (line 115)

Name of the actual table representing this class.

  • access: public
string $_tableMeta = null (line 122)

An array of meta data for the table.

  • access: public
array $_validated = array () (line 192)

An array of field names that have been already validated.

  • access: public
boolean $_validationLoaded = false (line 199)

Indicates if the validation map has been loaded.

  • access: public
array $_validationRules = array() (line 185)

An array of validation rules for this object instance.

  • access: public
xPDOValidator $_validator = null (line 178)

A validator object responsible for this object instance.

  • access: public
Methods
static getSelectColumns (line 549)

Get a set of column names from an xPDOObject for use in SQL queries.

  • return: A comma-delimited list of the field names for use in a SELECT clause.
  • access: public
  • usedby: xPDO::getSelectColumns()
static string getSelectColumns (xPDO &$xpdo, string $className, [string $tableAlias = ''], [string $columnPrefix = ''], [array $columns = array ()], [boolean $exclude = false])
  • xPDO &$xpdo: A reference to an initialized xPDO instance.
  • string $className: The class name to get columns from.
  • string $tableAlias: An optional alias for the table in the query.
  • string $columnPrefix: An optional prefix to prepend to each column name.
  • array $columns: An optional array of field names to include or exclude (include is default behavior).
  • boolean $exclude: Determines if any specified columns should be included or excluded from the set of results.
static load (line 400)

Load an instance of an xPDOObject or derivative class.

  • return: An instance of the requested class, or null if it could not be instantiated.
  • access: public
  • usedby: xPDO::getObject()
static object|null load (xPDO &$xpdo, string $className, mixed $criteria, [boolean|integer $cacheFlag = true])
  • xPDO &$xpdo: A valid xPDO instance.
  • string $className: Name of the class.
  • mixed $criteria: A valid primary key, criteria array, or xPDOCriteria instance.
  • boolean|integer $cacheFlag: Indicates if the objects should be cached and optionally, by specifying an integer value, for how many seconds.
static loadCollection (line 457)

Load a collection of xPDOObject instances.

  • return: An array of xPDOObject instances or an empty array if no instances are loaded.
  • access: public
  • usedby: xPDO::getCollection()
static array loadCollection (xPDO &$xpdo, string $className, [mixed $criteria = null], [boolean|integer $cacheFlag = true])
  • xPDO &$xpdo: A valid xPDO instance.
  • string $className: Name of the class.
  • mixed $criteria: A valid primary key, criteria array, or xPDOCriteria instance.
  • boolean|integer $cacheFlag: Indicates if the objects should be cached and optionally, by specifying an integer value, for how many seconds.
static loadCollectionGraph (line 511)

Load a collection of xPDOObject instances and a graph of related objects.

  • return: An array of xPDOObject instances or an empty array if no instances are loaded.
  • access: public
static array loadCollectionGraph (xPDO &$xpdo, string $className, string|array $graph, mixed $criteria, boolean|integer $cacheFlag)
  • xPDO &$xpdo: A valid xPDO instance.
  • string $className: Name of the class.
  • string|array $graph: A related object graph in array or JSON format, e.g. array('relationAlias'=>array('subRelationAlias'=>array())) or {"relationAlias":{"subRelationAlias":{}}}. Note that the empty arrays are necessary in order for the relation to be recognized.
  • mixed $criteria: A valid primary key, criteria array, or xPDOCriteria instance.
  • boolean|integer $cacheFlag: Indicates if the objects should be cached and optionally, by specifying an integer value, for how many seconds.
static _loadCollectionInstance (line 359)

Responsible for loading an instance into a collection.

  • access: public
static void _loadCollectionInstance (xPDO &$xpdo,  &$objCollection, string $className, mixed $criteria,  $row,  $fromCache, [boolean|integer $cacheFlag = true])
  • xPDO &$xpdo: A valid xPDO instance.
  • array &$objCollection: The collection to load the instance into.
  • string $className: Name of the class.
  • mixed $criteria: A valid primary key, criteria array, or xPDOCriteria instance.
  • boolean|integer $cacheFlag: Indicates if the objects should be cached and optionally, by specifying an integer value, for how many seconds.
  • $row
  • $fromCache
static _loadInstance (line 293)

Loads an instance from an associative array.

  • return: A new xPDOObject derivative representing a data row.
  • access: public
static xPDOObject _loadInstance (xPDO &$xpdo, string $className, mixed $criteria, array $row)
  • xPDO &$xpdo: A valid xPDO instance.
  • string $className: Name of the class.
  • mixed $criteria: A valid xPDOQuery instance or relation alias.
  • array $row: The associative array containing the instance data.
static _loadRows (line 230)

Responsible for loading a result set from the database.

  • return: A reference to a PDOStatement representing the result set.
  • access: public
static PDOStatement &_loadRows (xPDO &$xpdo, string $className, mixed $criteria)
  • xPDO &$xpdo: A valid xPDO instance.
  • string $className: Name of the class.
  • mixed $criteria: A valid primary key, criteria array, or xPDOCriteria instance.
Constructor __construct (line 596)

Constructor

Do not call the constructor directly; see xPDO::newObject().

All derivatives of xPDOObject must redeclare this method, and must call the parent method explicitly before any additional logic is executed, e.g.

  1.  public function __construct(xPDO $xpdo{
  2.      parent  :: __construct($xpdo);
  3.      // Any additional constructor tasks here
  4.  }

  • access: public
xPDOObject __construct (xPDO &$xpdo)
  • xPDO &$xpdo: A reference to a valid xPDO instance.
addMany (line 1130)

Adds an object or collection of objects related to this class.

This method adds an object or collection of objects in a one-to- many foreign key relationship with this object to the internal list of related objects. By adding these related objects, you can cascade xPDOObject::save(), xPDOObject::remove(), and other operations based on the type of relationships defined.

boolean addMany (mixed &$obj, [string $alias = ''])
  • mixed &$obj: A single object or collection of objects to be related to this instance via the intersection class.
  • string $alias: An optional alias, required only for instances where you have more than one relation defined to the same class.
addOne (line 1068)

Adds an object related to this instance by a foreign key relationship.

boolean addOne (mixed &$obj, [string $alias = ''])
  • mixed &$obj: A single object to be related to this instance.
  • string $alias: The relation alias of the related object (only required if more than one relation exists to the same foreign class).
addValidationRule (line 1743)

Add a validation rule to an object field for this instance.

  • access: public
void addValidationRule (string $field, string $name, string $type, string $rule, [ $parameters = array()])
  • string $field: The field key to apply the rule to.
  • string $name: A name to identify the rule.
  • string $type: The type of rule.
  • string $rule: The rule definition.
  • array $parameters: Any input parameters for the rule.
encode (line 1973)

Encodes a string using the specified algorithm.

NOTE: This implementation currently only implements md5. To implement additional algorithms, override this function in your xPDOObject derivative classes.

  • return: The encoded string.
  • access: public
string encode (string $source, [string $type = 'md5'])
  • string $source: The string source to encode.
  • string $type: The type of encoding algorithm to apply, md5 by default.
fromArray (line 1678)

Sets object fields from an associative array of key => value pairs.

  • access: public
void fromArray (array $fldarray, [string $keyPrefix = ''], [boolean $setPrimaryKeys = false], [boolean $rawValues = false], [boolean $adhocValues = false])
  • array $fldarray: An associative array of key => values.
  • string $keyPrefix: Specify an optional prefix to strip from all array keys in fldarray.
  • boolean $setPrimaryKeys: Optional param to set generated primary keys.
  • boolean $rawValues: Optional way to set values without calling the xPDOObject::set() method.
  • boolean $adhocValues: Optional way to set adhoc values so that all the values of fldarray become object vars.
fromJSON (line 1954)

Sets the object fields from a JSON object string.

  • access: public
void fromJSON (string $jsonSource, [string $keyPrefix = ''], [boolean $setPrimaryKeys = false], [boolean $rawValues = false], [boolean $adhocValues = false])
  • string $jsonSource: A JSON object string.
  • string $keyPrefix: An optional prefix to strip from the keys.
  • boolean $setPrimaryKeys: Indicates if primary key fields should be set.
  • boolean $rawValues: Indicates if values should be set raw or via xPDOObject::set().
  • boolean $adhocValues: Indicates if ad hoc fields should be added to the xPDOObject from the source object.
get (line 855)

Get a field value (or a set of values) by the field key(s) or name(s).

Warning: do not use the $format parameter if retrieving multiple values of different types, as the format string will be applied to all types, most likely with unpredicatable results. Optionally, you can supply an associate array of format strings with the field key as the key for the format array.

  • return: The value(s) of the field(s) requested.
  • access: public
mixed get (string|array $k, [string|array $format = null], [mixed $formatTemplate = null])
  • string|array $k: A string (or an array of strings) representing the field key or name.
  • string|array $format: An optional variable (or an array of variables) to format the return value(s).
  • mixed $formatTemplate: An additional optional variable that can be used in formatting the return value(s).
getFieldName (line 1625)

Gets a field name as represented in the database container.

This gets the name of the field, fully-qualified by either the object table name or a specified alias, and properly quoted.

  • return: The name of the field, qualified with the table name or an optional table alias.
  • access: public
string getFieldName (string $k, [string $alias = null])
  • string $k: The simple name of the field.
  • string $alias: An optional alias for the table in a specific query.
getFKClass (line 1575)

Get the name of a class related by foreign key to a specified field key.

This is generally used to lookup classes involved in one-to-one relationships with the current object.

  • access: public
void getFKClass (string $k)
  • string $k: The field name or key to lookup a related class for.
getFKDefinition (line 1610)

Get a foreign key definition for a specific classname.

This is generally used to lookup classes in a one-to-many relationship with the current object.

  • return: A foreign key definition.
  • access: public
array getFKDefinition (string $alias)
  • string $alias: Alias of the related class to lookup a foreign key definition from.
getMany (line 1051)

Gets a collection of objects related by aggregate or composite relations.

array &getMany (string $alias, [object $criteria = null], [boolean|integer $cacheFlag = true])
  • string $alias: Alias of the foreign class representing the related object.
  • object $criteria: xPDOCriteria object to get the related objects
  • boolean|integer $cacheFlag: Indicates if the objects should be cached and optionally, by specifying an integer value, for how many seconds.
getOne (line 1013)

Gets an object related to this instance by a foreign key relationship.

Use this for 1:? (one:zero-or-one) or 1:1 relationships, which you can distinguish by setting the nullability of the field representing the foreign key.

For all 1:* relationships for this instance, see getMany().

xPDOObject|null &getOne (string $alias, [object $criteria = null], [boolean|integer $cacheFlag = true])
  • string $alias: Alias of the foreign class representing the related object.
  • object $criteria: xPDOCriteria object to get the related objects
  • boolean|integer $cacheFlag: Indicates if the object should be cached and optionally, by specifying an integer value, for how many seconds.
getOption (line 655)

Get an option value for this instance.

  • return: The value of the option or null if it is not set.
  • access: public
mixed getOption (string $key)
  • string $key: The option key to retrieve a value from.
getPK (line 1545)

Gets the name (or names) of the primary key field(s) for the object.

  • return: The string (or an array of strings) representing the name(s) of the primary key field(s) for this instance.
  • access: public
mixed getPK ()
getPKType (line 1557)

Gets the type of the primary key field for the object.

  • return: The type of the primary key field for this instance.
  • access: public
string getPKType ()
getPrimaryKey (line 1507)

Gets the value (or values) of the primary key field(s) for the object.

  • return: The string (or an array) representing the value(s) of the primary key field(s) for this instance.
  • access: public
mixed getPrimaryKey ([boolean $validateCompound = true])
  • boolean $validateCompound: If any of the keys in a compound primary key are empty or null, and the default value is not allowed to be null, do not return an array, instead return null; the default is true
getValidator (line 1783)

Get the xPDOValidator class configured for this instance.

  • return: The xPDOValidator instance or false if it could not be loaded.
  • access: public
string|boolean getValidator ()
isDirty (line 1998)

Indicates if an object field has been modified (or never saved).

  • return: True if the field exists and either has been modified or the object is new.
  • access: public
boolean isDirty (string $key)
  • string $key: The field name to check.
isLazy (line 1865)

Indicates if the object or specified field is lazy.

  • return: True if the field specified or if any field is lazy if no field is specified.
  • access: public
boolean isLazy ([string $key = ''])
  • string $key: Optional key to check for laziness.
isNew (line 2035)

Indicates if the instance is new, and has not yet been persisted.

  • return: True if the object has not been saved or was loaded from the database.
  • access: public
boolean isNew ()
isValidated (line 1847)

Indicates if the object or specified field has been validated.

  • return: True if the object or specified field has been fully validated successfully.
  • access: public
boolean isValidated ([string $key = ''])
  • string $key: Optional key to check for specific validation.
remove (line 1441)

Remove the persistent instance of an object permanently.

Deletes the persistent object isntance stored in the database when called, including any dependent objects defined by composite foreign key relationships.

  • return: Returns true on success, false on failure.
  • todo: Implement some way to reassign ownership of related composite objects when remove is called, perhaps by passing another object instance as an optional parameter, or creating a separate method.
  • access: public
boolean remove ([ $ancestors = array ()])
  • array $ancestors: Keeps track of classes which have already been removed to prevent loop with circular references.
removeValidationRules (line 1764)

Remove one or more validation rules from this instance.

  • access: public
void removeValidationRules ([string $field = null], [ $rules = array()])
  • string $field: An optional field name to remove rules from. If not specified or null, all rules from all columns will be removed.
  • array $rules: An optional array of rule names to remove if a single field is specified. If $field is null, this parameter is ignored.
save (line 1181)

Persist new or changed objects to the database container.

Inserts or updates the database record representing this object and any new or changed related object records. Both aggregate and composite related objects will be saved as appropriate, before or following the save operation on the controlling instance.

  • return: Returns true on success, false on failure.
  • access: public
boolean save ([boolean|integer $cacheFlag = null])
  • boolean|integer $cacheFlag: Indicates if the saved object(s) should be cached and optionally, by specifying an integer value, for how many seconds before expiring. Overrides the cacheFlag for the object(s).
set (line 686)

Set a field value by the field key or name.

  • return: Determines whether the value was set successfully and was determined to be dirty (i.e. different from the previous value).
  • todo: Define and implement field validation.
  • access: public
boolean set (string $k, [mixed $v = null], [string|callable $vType = ''])
  • string $k: The field key or name.
  • mixed $v: The value to set the field to.
  • string|callable $vType: A string indicating the format of the provided value parameter, or a callable function that should be used to set the field value, overriding the default behavior.
setDirty (line 2017)

Add the field to a collection of field keys that have been modified.

This function also clears any validation flag associated with the field.

  • access: public
void setDirty ([string $key = ''])
  • string $key: The key of the field to set dirty.
setOption (line 669)

Set an option value for this instance.

  • access: public
void setOption (string $key, mixed $value)
  • string $key: The option key to set a value for.
  • mixed $value: A value to assign to the option.
toArray (line 1650)

Copies the object fields and corresponding values to an associative array.

  • return: An array representation of the object fields/values.
  • access: public
array toArray ([string $keyPrefix = ''], [boolean $rawValues = false], [boolean $excludeLazy = false])
  • string $keyPrefix: An optional prefix to prepend to the field values.
  • boolean $rawValues: An optional flag indicating if you want the raw values instead of those returned by the xPDOObject::get() function.
  • boolean $excludeLazy: An option flag indicating if you want to exclude lazy fields from the resulting array; the default behavior is to include them which means the object will query the database for the lazy fields before providing the value.
toJSON (line 1934)

Returns a JSON representation of the object.

  • return: A JSON string representing the object.
  • access: public
string toJSON ([string $keyPrefix = ''], [boolean $rawValues = false])
  • string $keyPrefix: An optional prefix to prepend to the field keys.
  • boolean $rawValues: An optional flag indicating if the field values should be returned raw or via xPDOObject::get().
validate (line 1824)

Validate the field values using an xPDOValidator.

  • return: True if validation was successful.
  • access: public
boolean validate ([ $options = array()])
  • array $options: An array of options to pass to the validator.
_getAliases (line 2172)

Find aliases for any defined object relations of the specified class.

  • return: An array of aliases or an empty array if none are found.
  • access: protected
array _getAliases (string $class, [int $limit = 0])
  • string $class: The name of the class to find aliases from.
  • int $limit: An optional limit on the number of aliases to return; default is 0, i.e. no limit.
_getDataType (line 2046)

Gets the database data type for the specified field.

  • return: The DB data type of the field.
  • access: protected
string _getDataType (string $key)
  • string $key: The field name to get the data type for.
_getPHPType (line 2063)

Gets the php data type for the specified field.

  • return: The PHP data type of the field.
  • access: protected
string _getPHPType (string $key)
  • string $key: The field name to get the data type for.
_getRelatedObjectsByFK (line 1886)

Gets related objects by a foreign key and specified criteria.

  • return: A collection of objects matching the criteria.
  • access: protected
array &_getRelatedObjectsByFK (string $alias, [mixed $criteria = null], [boolean|integer $cacheFlag = true])
  • string $alias: The alias representing the relationship.
  • mixed $criteria: An optional xPDO criteria expression.
  • boolean|integer $cacheFlag: Indicates if the saved object(s) should be cached and optionally, by specifying an integer value, for how many seconds before expiring. Overrides the cacheFlag for the object.
_initFields (line 1919)

Initializes the field names with the qualified table name.

Once this is called, you can lookup the qualified name by the field name itself in xPDOObject::$fieldNames.

  • access: protected
void _initFields ()
_loadFieldData (line 2080)

Load persistent data from the source for the field(s) indicated.

  • access: protected
void _loadFieldData (string|array $fields)
  • string|array $fields: A field name or array of field names to load from the data source.
_loadValidation (line 1805)

Used to load validation from the object map.

  • access: public
void _loadValidation ([boolean $reload = false])
  • boolean $reload: Indicates if the schema validation rules should be reloaded.
_saveRelatedObject (line 1401)

Save a related object with pending changes.

This function is also responsible for setting foreign keys when new related objects are being saved, as well as local keys when the host object is new and needs the foreign key.

boolean _saveRelatedObject (xPDOObject &$obj, array $fkMeta)
  • xPDOObject &$obj: A reference to the related object.
  • array $fkMeta: The meta data representing the relation.
_saveRelatedObjects (line 1352)

Searches for any related objects with pending changes to save.

integer _saveRelatedObjects ()
_setRaw (line 2100)

Set a raw value on a field converted to the appropriate type.

  • return: Returns true if the value was set, false otherwise.
  • access: protected
boolean _setRaw (string $key, mixed $val)
  • string $key: The key identifying the field to set.
  • mixed $val: The value to set.

Documentation generated on Mon, 27 Dec 2010 11:08:31 -0700 by phpDocumentor 1.4.3