Instance __construct(
Entity
$entity, [mixed
$source = NULL]
)
|
|
Creates object from SQL result row or array of parameter values or blank to be filled later.
Parameters:
Entity |
$entity: |
Reference to parent entity |
mixed |
$source: |
ID or query result row |
API Tags:
Redefined in descendants as:
-
Item::__construct()
: Instance constructor. Creates object from SQL result row, loads by ID or just leaves blank to be filled later.
-
Link::__construct()
: Instance constructor. Creates object from SQL result row, loads by ID or just leaves blank to be filled later.
Removes object instance from the database
API Tags:
Return: | TRUE on success, FALSE on error |
Access: | public |
Checks whether instance exists in database
API Tags:
Redefined in descendants as:
API Tags:
Return: | SQL primary key for WHERE |
Access: | protected |
Redefined in descendants as:
Saves unit object in database. Performs UPDATE if object ID is set or INSERT otherwise.
API Tags:
Return: | FALSE on error, TRUE on successful update or ID on successful insert |
Access: | public |
mixed __get(
string
$name
)
|
|
Returns property value
Parameters:
string |
$name: |
Property name |
API Tags:
Return: | Property value |
Access: | public |
bool __isset(
string
$name
)
|
|
Checks for property
Parameters:
string |
$name: |
Property name |
API Tags:
Return: | Whether field is set |
Access: | public |
void __set(
string
$name, mixed
$value
)
|
|
Sets property value
Parameters:
string |
$name: |
Property name |
mixed |
$value: |
Property value |
API Tags:
void __unset(
string
$name
)
|
|
Unsets property value
Parameters:
string |
$name: |
Property name |
API Tags: