void AdjustBizObjName(
string
$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.
Parameters:
|
string |
$bizObjName: |
the name of BizDataObj obejct |
API Tags:
Check if the field is a required field
API Tags:
| Return: | true if the field is a required field |
| Access: | public |
void CheckValueType(
[mixed
$value = null]
)
|
|
API Tags:
Get the data object instance
API Tags:
| Return: | BizDataObj instance |
| Access: | protected |
string GetDefaultValue(
)
|
|
Get default value
API Tags:
| Return: | the default value of the field |
| Access: | public |
string GetInsertLobValue(
string
$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.
Parameters:
|
string |
$dbType: |
database type |
API Tags:
| Return: | the insert string for the lob column |
| Access: | public |
string GetProperty(
string
$propertyName
)
|
|
Get property value
Parameters:
|
string |
$propertyName: |
property name |
API Tags:
| Return: | property value |
| Access: | public |
Redefinition of:
- MetaObject::GetProperty()
- Get property
string GetSqlValue(
[mixed
$input = null]
)
|
|
Get string used in sql - with single quote, or without single quote in case of number
Parameters:
|
mixed |
$input: |
the value to add quote. If null, use the current field value |
API Tags:
| Return: | string used in sql |
| Access: | public |
mixed GetValue(
[boolean
$formatted = true]
)
|
|
Get the value of the field.
Parameters:
|
boolean |
$formatted: |
true if want to get the formatted value |
API Tags:
| Return: | string or number depending on the field type |
| Access: | public |
string GetValueOnCreate(
)
|
|
Get the value when a new record is created
API Tags:
| Return: | the value of the field |
| Access: | public |
string GetValueOnUpdate(
)
|
|
Get the value when a record is updated
API Tags:
| Return: | the value of the field |
| Access: | public |
Check if the field is a LOB type column
API Tags:
| Return: | true if the field points a LOB type column |
| Access: | public |
void SaveOldValue(
[mixed
$oldVal = null]
)
|
|
Save the old value to an internal variable
API Tags:
void SetValue(
mixed
$val
)
|
|
Set the value of the field.
Parameters:
API Tags:
Use default format if no format is given
API Tags:
Check if the field has valid value
API Tags:
| Return: | true if validation is good |
| Access: | public |