Public Member Functions | Protected Member Functions

BizDataObj Class Reference

Inheritance diagram for BizDataObj:
Inheritance graph
[legend]
Collaboration diagram for BizDataObj:
Collaboration graph
[legend]

Public Member Functions

 __construct (&$xmlArr)
 validateInput ()
 canUpdateRecord ($record=null)
 canUpdateRecordCondition ()
 canDeleteRecord ($record=null)
 canDeleteRecordCondition ()
 updateRecord ($recArr, $oldRecord=null)
 updateRecords ($setValue, $condition=null)
 newRecord ()
 insertRecord ($recArr)
 deleteRecord ($recArr)
 deleteRecords ($condition=null)
 getOnAuditFields ()
 getJoinFields ($joinDataObj)
 joinRecord ($joinDataObj, $joinName="")
 addRecord ($recArr, &$isParentObjUpdated)
 removeRecord ($recArr, &$isParentObjUpdated)
 cleanCache ()

Protected Member Functions

 validateUniqueness ()
 generateId ($isBeforeInsert=true, $tableName=null, $idCloumnName=null)
 processCascadeAction ($objRef, $cascadeType)
 cascadeDelete ()
 cascadeUpdate ()

Detailed Description

Definition at line 27 of file BizDataObj.php.


Constructor & Destructor Documentation

__construct ( &$  xmlArr )

Initialize BizDataObj_Abstract with xml array

Parameters:
array$xmlArr
Returns:
void

Reimplemented from BizDataObj_Abstract.

Definition at line 35 of file BizDataObj.php.


Member Function Documentation

addRecord ( recArr,
&$  isParentObjUpdated 
)

Add a new record to current record set

Parameters:
array$recArr
boolean$isParentObjUpdated
Returns:
boolean

Definition at line 865 of file BizDataObj.php.

canDeleteRecord ( record = null )

Check if the current record can be deleted

Returns:
boolean

Definition at line 191 of file BizDataObj.php.

Here is the call graph for this function:

Here is the caller graph for this function:

canUpdateRecord ( record = null )

Check if the current record can be updated

Returns:
boolean

Definition at line 156 of file BizDataObj.php.

Here is the call graph for this function:

Here is the caller graph for this function:

cascadeDelete (  ) [protected]

Run cascade delete

Returns:
void

Definition at line 716 of file BizDataObj.php.

Here is the caller graph for this function:

cascadeUpdate (  ) [protected]

Run cascade update

Returns:
void

Definition at line 727 of file BizDataObj.php.

Here is the caller graph for this function:

cleanCache (  )

Clean chache

BizSystem $g_BizSystem

Returns:
void

Definition at line 892 of file BizDataObj.php.

Here is the call graph for this function:

Here is the caller graph for this function:

deleteRecord ( recArr )

Delete current record or delete the given input record

Parameters:
array$recArr- associated array whose keys are field names of this BizDataObj
Returns:
boolean - if return false, the caller can call GetErrorMessage to get the error.

Reimplemented from BizDataObj_Lite.

Definition at line 525 of file BizDataObj.php.

Here is the call graph for this function:

generateId ( isBeforeInsert = true,
tableName = null,
idCloumnName = null 
) [protected]

Generate Id according to the IdGeneration attribute

Parameters:
boolean$isBeforeInsert
string$tableName
string$idCloumnName
Returns:
long|string|boolean

Definition at line 408 of file BizDataObj.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getJoinFields ( joinDataObj )

Get all fields that belong to the same join of the input field

Parameters:
BizDataObj$joinDataObjthe join data object
Returns:
array joined fields array

Definition at line 777 of file BizDataObj.php.

getOnAuditFields (  )

Get auditable fields

Returns:
array list of BizField objects who are auditable

Definition at line 739 of file BizDataObj.php.

insertRecord ( recArr )

Insert record using given input record array

Parameters:
array$recArr- associated array whose keys are field names of this BizDataObj
Returns:
boolean - if return false, the caller can call getErrorMessage to get the error.

Reimplemented from BizDataObj_Lite.

Definition at line 451 of file BizDataObj.php.

Here is the call graph for this function:

joinRecord ( joinDataObj,
joinName = "" 
)

Pick the joined object's current record to the current record

Parameters:
BizDataObj$joinDataObj
string$joinNamename of join (optional)
Returns:
array return a modified record with joined record data

Definition at line 820 of file BizDataObj.php.

newRecord (  )

Create an empty new record

Returns:
array - empty record array with default values

Reimplemented from BizDataObj_Lite.

Definition at line 380 of file BizDataObj.php.

removeRecord ( recArr,
&$  isParentObjUpdated 
)

Remove a record from current record set of current association relationship

Parameters:
array$recArr
boolean&$isParentObjUpdated
Returns:
boolean

Definition at line 881 of file BizDataObj.php.

updateRecord ( recArr,
oldRecord = null 
)

Update record using given input record array

Parameters:
array$recArr- associated array whose keys are field names of this BizDataObj
array$oldRecord- associated array who is the old record field name / value pairs
Returns:
boolean - if return false, the caller can call GetErrorMessage to get the error.

Reimplemented from BizDataObj_Lite.

Definition at line 227 of file BizDataObj.php.

Here is the call graph for this function:

validateInput (  )

Validate user input data and trigger error message and adjust BizField if invalid.

Returns:
boolean
Todo:
: throw BDOException

Reimplemented from BizDataObj_Lite.

Definition at line 46 of file BizDataObj.php.

Here is the call graph for this function:

Here is the caller graph for this function:

validateUniqueness (  ) [protected]

Validate uniqueness Uniqueness = "fld1,fld2;fld3,fld4;..."

Returns:
boolean

Definition at line 107 of file BizDataObj.php.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: