Public Member Functions | |
__construct (&$xmlArr, $className, $parentObj=null) | |
merge (&$anotherMIObj) | |
getFieldByColumn ($column, $table=null) | |
getEmptyRecordArr () | |
getKeyValue ($isUseOldValue=false) | |
getKeyFields () | |
getKeySearchRule ($isUseOldValue=false, $isUseColumnName=false) | |
setRecordArr ($recArr) | |
setInputRecord (&$inputArr) | |
saveOldRecord (&$inputArr) | |
getRecordArr ($sqlArr=null) | |
convertSqlArrToRecArr ($sqlArr) | |
getJoinInputRecord ($join) | |
getJoinSearchRule ($tableJoin, $isUseOldValue=false) | |
getToSaveFields ($type) | |
Data Fields | |
$m_InputFields | |
Protected Attributes | |
$m_KeyFldColMap = array() | |
$m_ColFldMap = array() | |
$m_IgnoreInQuery = false |
Definition at line 24 of file BizRecord.php.
__construct | ( | &$ | xmlArr, |
$ | className, | ||
$ | parentObj = null |
||
) |
Initialize BizRecord with xml array
array | $xmlArr | array data from xml file |
string | $className | name of the class of the object |
object | $parentObj | parent object |
Reimplemented from MetaIterator.
Definition at line 52 of file BizRecord.php.
convertSqlArrToRecArr | ( | $ | sqlArr ) |
Conver sql array to record array
array | $sqlArr | indexed-value pair array |
Definition at line 295 of file BizRecord.php.
getEmptyRecordArr | ( | ) | [final] |
Get an empty record array. Called by BizDataObj::newRecord()
Definition at line 125 of file BizRecord.php.
getFieldByColumn | ( | $ | column, |
$ | table = null |
||
) |
Get fielf by column name
string | $column | column name |
string | $table | table name |
Definition at line 112 of file BizRecord.php.
getJoinInputRecord | ( | $ | join ) |
Get join input record
<type> | $join |
Definition at line 335 of file BizRecord.php.
getJoinSearchRule | ( | $ | tableJoin, |
$ | isUseOldValue = false |
||
) |
Get join search rule
NOTE: Added by Jixian on 2009-02-16 for implement onSaveDataObj
TableJoin | $tableJoin | |
boolean | $isUseOldValue |
Definition at line 367 of file BizRecord.php.
getKeyFields | ( | ) | [final] |
Get a list of fields (name) who are defined as keys columns
Definition at line 163 of file BizRecord.php.
getKeySearchRule | ( | $ | isUseOldValue = false , |
$ | isUseColumnName = false |
||
) |
Get key search rule. The key search rule is used to find a single record by given key values
boolean | $isUseOldValue | true if old key value is used in the search rule |
boolean | $isUseColumnName | true if column name is used in the search rule, false if [field] is used |
Definition at line 181 of file BizRecord.php.
getKeyValue | ( | $ | isUseOldValue = false ) |
[final] |
Get key (Id) value. If Id is defined as composite key, the returned key value is the combination of key columns
boolean | $isUseOldValue |
Definition at line 143 of file BizRecord.php.
getRecordArr | ( | $ | sqlArr = null ) |
[final] |
Get record array by converting input indexed-Value array to Field-Value pairs
array | $sqlArr | column value pair array |
Definition at line 272 of file BizRecord.php.
getToSaveFields | ( | $ | type ) | [final] |
Get insert/update fields. Ignore unchanged field in UPDATE case
Definition at line 382 of file BizRecord.php.
merge | ( | &$ | anotherMIObj ) |
Merge with another BizRecord object. Used in metedata inheritance.
Reimplemented from MetaIterator.
Definition at line 64 of file BizRecord.php.
saveOldRecord | ( | &$ | inputArr ) | [final] |
Save old recrod, used in update record when old record value is needed in the action
array | $inputArr | old record array |
Definition at line 254 of file BizRecord.php.
setInputRecord | ( | &$ | inputArr ) | [final] |
Assign a record array as the internal record of the BizRecord
array | $inpuArr |
Definition at line 221 of file BizRecord.php.
setRecordArr | ( | $ | recArr ) |
Set record array to internal data structure
array | $recArr | record array |
Definition at line 204 of file BizRecord.php.