boolean AddRecord(
array
$recArr, boolean
&$bPrtObjUpdated
)
|
|
Add a new record to current record set
Parameters:
|
array |
$recArr: |
|
|
boolean |
&$bPrtObjUpdated: |
|
API Tags:
boolean CanDeleteRecord(
)
|
|
Check if the current record can be deleted
API Tags:
boolean CanUpdateRecord(
)
|
|
Check if the current record can be updated
API Tags:
boolean CascadeDelete(
[array
$cascadeObjNames = null]
)
|
|
Run cascade delete
Parameters:
|
array |
$cascadeObjNames: |
names of the cascade objects |
API Tags:
| Return: | - if return false, the caller can call GetErrorMessage to get the error. |
| Access: | protected |
boolean DeleteRecord(
array
$recArr
)
|
|
Delete current record or delete the given input record
Parameters:
|
array |
$recArr: |
- associated array whose keys are field names of this BizDataObj |
API Tags:
| Return: | - if return false, the caller can call GetErrorMessage to get the error. |
| Access: | public |
Redefinition of:
- BizDataObj_Lite::DeleteRecord()
- Delete current record or delete the given input record
mixed GenerateId(
[mixed
$beforeInsert = true], [mixed
$tableName = null], [mixed
$idCloumnName = null]
)
|
|
Generate Id according to the IdGeneration attribute
API Tags:
| Return: | long or string or false |
| Access: | protected |
Get all fields that belong to the same join of the input field
Parameters:
API Tags:
| Return: | joined fields array |
| Access: | public |
array GetOnAuditFields(
)
|
|
Get auditable fields
API Tags:
| Return: | list of BizField objects who are auditable |
| Access: | public |
boolean InsertRecord(
array
$recArr
)
|
|
Insert record using given input record array
Parameters:
|
array |
$recArr: |
- associated array whose keys are field names of this BizDataObj |
API Tags:
| Return: | - if return false, the caller can call GetErrorMessage to get the error. |
| Access: | public |
Redefinition of:
- BizDataObj_Lite::InsertRecord()
- Insert record using given input record array
boolean JoinRecord(
BizDataObj
$joinDataObj, [mixed
$joinName = ""]
)
|
|
Pick the joined object's current record to the current record
Parameters:
API Tags:
Create an empty new record
API Tags:
| Return: | - empty record array with default values |
| Access: | public |
Redefinition of:
- BizDataObj_Lite::NewRecord()
- Create an empty new record
boolean RemoveRecord(
array
$recArr, boolean
&$bPrtObjUpdated
)
|
|
Remove a record from current record set of current association relationship
Parameters:
|
array |
$recArr: |
|
|
boolean |
&$bPrtObjUpdated: |
|
API Tags:
boolean UpdateRecord(
array
$recArr, [array
$oldRec = null]
)
|
|
Update record using given input record array
Parameters:
|
array |
$recArr: |
- associated array whose keys are field names of this BizDataObj |
|
array |
$oldRec: |
- associated array who is the old record field name / value pairs |
API Tags:
| Return: | - if return false, the caller can call GetErrorMessage to get the error. |
| Access: | public |
Redefinition of:
- BizDataObj_Lite::UpdateRecord()
- Update record using given input record array
Validate user input data and trigger error message and adjust BizField if invalid.
API Tags:
Redefinition of:
- BizDataObj_Lite::ValidateInput()
- Validate user input data and trigger error message and adjust BizField if invalid.
boolean ValidateUniqueness(
)
|
|
Validate uniqueness Uniqueness = "fld1,fld2;fld3,fld4;..."
API Tags: