void __construct(
array
&$xmlArr, string
$className, [mixed
$prtObj = null], BizDataObj
$bizObj
)
|
|
Initialize BizRecord with xml array
Parameters:
|
array |
$xmlArr: |
xml array |
|
string |
$className: |
name of the class of the object |
|
BizDataObj |
$bizObj: |
BizDataObj instance |
Redefinition of:
- MetaIterator::__construct()
- Contructor of class
array ConvertSqlArrToRecArr(
array
$sqlArr
)
|
|
Conver sql array to record array
Parameters:
|
array |
$sqlArr: |
indexed-value pair array |
API Tags:
| Return: | field-value record array |
| Access: | public |
array GetEmptyRecordArr(
)
|
|
Get an empty record array. Called by BizDataObj::NewRecord()
API Tags:
| Return: | record array |
| Access: | public |
BizField GetFieldByColumn(
string
$column, [string
$table = null]
)
|
|
Get fielf by column name
Parameters:
|
string |
$column: |
column name |
|
string |
$table: |
table name |
API Tags:
| Return: | BizField object |
| Access: | public |
GetJoinInputRecord(
$join
)
|
|
Get join input record
NOTE: not used in. may used in the future release BedSmellInCode::SpeculativeGenerality() ?? >>
Parameters:
API Tags:
string GetJoinSearchRule(
$tableJoin, [boolean
$useOldValue = false]
)
|
|
Get join search rule
NOTE: Added by Jixian on 2009-02-16 for implement onSaveDataObj
Parameters:
|
|
$tableJoin: |
|
|
boolean |
$useOldValue: |
|
API Tags:
Get a list of fields (name) who are defined as keys columns
API Tags:
| Return: | array of key fields |
| Access: | public |
string GetKeySearchRule(
[boolean
$useOldValue = false], [boolean
$useColumnName = false]
)
|
|
Get key search rule.
The key search rule is used to find a single record by given key values
Parameters:
|
boolean |
$useOldValue: |
true if old key value is used in the search rule |
|
boolean |
$useColumnName: |
true if column name is used in the search rule, false if [field] is used |
API Tags:
| Return: | search rule |
| Access: | public |
string GetKeyValue(
[boolean
$useOldValue = false]
)
|
|
Get key (Id) value.
If Id is defined as composite key, the returned key value is the combination of key columns
Parameters:
API Tags:
| Return: | key field string |
| Access: | public |
array GetRecordArr(
[array
$sqlArr = null]
)
|
|
Get record array by converting input indexed-Value array to Field-Value pairs
Parameters:
|
array |
$sqlArr: |
column value pair array |
API Tags:
| Return: | record array |
| Access: | public |
array GetToSaveFields(
mixed
$type
)
|
|
Get insert/update fields.
Ignore unchanged field in UPDATE case
API Tags:
| Return: | field value pair array |
| Access: | public |
void merge(
mixed
&$anotherMIObj, BizRecord
$anotherMIObject
)
|
|
Merge with another BizRecord object. Used in metedata inheritance.
Parameters:
|
BizRecord |
$anotherMIObject: |
to be merged BizRecord object |
API Tags:
Redefinition of:
- MetaIterator::merge()
- Merge to another MetaIterator object
avoid SaveOldRecord(
array
&$inputArr
)
|
|
Save old recrod, used in update record when old record value is needed in the action
Parameters:
|
array |
$inputArr: |
old record array |
API Tags:
void SetInputRecord(
mixed
&$inputArr
)
|
|
API Tags:
void SetRecordArr(
array
$recArr
)
|
|
Set record array to internal data structure
Parameters:
|
array |
$recArr: |
record array |
API Tags: