Public Member Functions | |
__construct (&$xmlArr, $bizObj) | |
getProperty ($propertyName) | |
adjustBizObjName ($bizObjName) | |
getSqlValue ($input=null) | |
isLobField () | |
getInsertLobValue ($dbType) | |
lookupValue () | |
getValue ($formatted=true) | |
setValue ($value) | |
saveOldValue ($oldValue=null) | |
getDefaultValue () | |
getValueOnCreate () | |
getValueOnUpdate () | |
checkRequired () | |
checkValueType ($value=null) | |
validate () | |
Data Fields | |
$m_BizObjName | |
$m_Join = null | |
$m_Column = null | |
$m_Alias = null | |
$m_Index | |
$m_Type = null | |
$m_Format = null | |
$m_Length = null | |
$m_ValueExpression = null | |
$m_Required = null | |
$m_Validator = null | |
$m_SqlExpression = null | |
$m_Encrypted = "N" | |
$m_ClearText = null | |
$m_DefaultValue = null | |
$m_ValueOnCreate = null | |
$m_ValueOnUpdate = null | |
$m_OnAudit = false | |
$m_Value = null | |
$m_OldValue = null | |
Protected Member Functions | |
useDefaultFormat () | |
getDataObj () |
Definition at line 25 of file BizField.php.
__construct | ( | &$ | xmlArr, |
$ | bizObj | ||
) |
Initialize BizField with xml array
array | $xmlArr | xml array |
BizDataObj | $bizObj | BizDataObj instance |
Definition at line 100 of file BizField.php.
adjustBizObjName | ( | $ | bizObjName ) |
Change the BizDataObj name. This function is used in case of the current BizDataObj inheriting from another BizDataObj, BizField's BizDataObj name should be changed to current BizDataObj name, not the parent object name.
string | $bizObjName | the name of BizDataObj object |
Definition at line 168 of file BizField.php.
checkRequired | ( | ) |
Check if the field is a required field
Definition at line 340 of file BizField.php.
checkValueType | ( | $ | value = null ) |
Check value type
mixed | $value |
Definition at line 360 of file BizField.php.
getDataObj | ( | ) | [protected] |
Get the BizDataObj instance
Definition at line 330 of file BizField.php.
getDefaultValue | ( | ) |
Get default value of the field
Definition at line 294 of file BizField.php.
getInsertLobValue | ( | $ | dbType ) |
Get insert lob value when execute insert SQL. For a lob column, insert SQL first inserts an empty entry in the lob column. Then use update to actually add the lob data.
string | $dbType | database type |
Definition at line 217 of file BizField.php.
getProperty | ( | $ | propertyName ) |
Get property value
string | $propertyName | property name |
Reimplemented from MetaObject.
Definition at line 151 of file BizField.php.
getSqlValue | ( | $ | input = null ) |
Get string used in sql - with single quote, or without single quote in case of number
mixed | $input | the value to add quote. If null, use the current field value |
Definition at line 180 of file BizField.php.
getValue | ( | $ | formatted = true ) |
Get the value of the field.
boolean | $formatted | true if want to get the formatted value |
Definition at line 245 of file BizField.php.
getValueOnCreate | ( | ) |
Get the value when a new record is created
Definition at line 306 of file BizField.php.
getValueOnUpdate | ( | ) |
Get the value when a record is updated
Definition at line 318 of file BizField.php.
isLobField | ( | ) |
Check if the field is a LOB type column
Definition at line 205 of file BizField.php.
lookupValue | ( | ) |
Lookup the value of the field. Typically used in expression @:Field[name].Value
boolean | $formatted | true if want to get the formatted value |
Definition at line 233 of file BizField.php.
saveOldValue | ( | $ | oldValue = null ) |
Save the old value to an internal variable
mixed | $oldValue |
Definition at line 281 of file BizField.php.
setValue | ( | $ | value ) |
Set the value of the field.
mixed | $value |
Definition at line 270 of file BizField.php.
useDefaultFormat | ( | ) | [protected] |
Use default format if no format is given
Definition at line 137 of file BizField.php.
validate | ( | ) |
Check if the field has valid value
Definition at line 406 of file BizField.php.