API Tags:
Redefined in descendants as:
void assign(
string
$name, mixed
$value
)
|
|
Assign a value into a variable
Assign a value into a variable
Parameters:
|
string |
$name: |
The variable name to define |
|
mixed |
$value: |
The variable value |
API Tags:
void import(
mixed
$src
)
|
|
Import variables from an array or object
Import variables from an array or object
Parameters:
|
mixed |
$src: |
The object to scan for variables |
API Tags:
void object_added(
string
$name,
&$object, object
$object
)
|
|
An inheritable function to notify an object attachment
An inheritable function to notify an object attachment
Parameters:
|
string |
$name: |
The variable name that was updated |
|
object |
$object: |
The object that was added |
|
|
&$object: |
|
API Tags:
Redefined in descendants as:
void object_removed(
string
$name,
&$object, object
$object
)
|
|
An inheritable function to notify an object detachment
An inheritable function to notify an object detachment
Parameters:
|
string |
$name: |
The variable name that was updated |
|
object |
$object: |
The object that was removed |
|
|
&$object: |
|
API Tags:
Redefined in descendants as:
Pop a value from a variable
Pop a value from a variable
If the variable is not an array, the variable is returned and then unsetted If the variable is not defined, NULL is returned
Parameters:
|
string |
$var: |
The variable name |
API Tags:
void push(
$var, mixed
$value, string
$name
)
|
|
Push a value on a variable
If the variable is not an array, it is conerted to.
Push a value on a variable
If the variable is not an array, it is conerted to. If the variable is not definet, it will be created as an array.
Parameters:
|
string |
$name: |
The variable name |
|
mixed |
$value: |
The variable value |
|
|
$var: |
|
API Tags:
void push_once(
$var, mixed
$value, [mixed
$uid = false], string
$name
)
|
|
Push a value on a variable, but make sure it's only one on the array
This function checks for an existing $value on the array. exists, it is not appended twice.
Push a value on a variable, but make sure it's only one on the array
This function checks for an existing $value on the array. If it already exists, it is not appended twice.
If you specify the $uid parameter, the unique matching is based on the value of this variable.
Parameters:
|
string |
$name: |
The variable name |
|
mixed |
$value: |
The variable value |
|
mixed |
$uid: |
[Optional] The unique ID to perform single matching. If not defined, uniqueness will be checked with the content. |
|
|
$var: |
|
API Tags:
void shift(
string
$var
)
|
|
Shift a value from a variable
Shift a value from a variable
If the variable is not an array, the variable is returned and then unsetted If the variable is not defined, NULL is returned
Parameters:
|
string |
$var: |
The variable name |
API Tags:
void sort(
string
$var, [int
$sort_flags = 0]
)
|
|
Sort the contents of a variable
Sort the contents of a variable
If the variable is not an array or not defined, nothing happens
Parameters:
|
string |
$var: |
The variable name |
|
int |
$sort_flags: |
The sort flags, as defined in sort() |
API Tags:
void unshift(
$var, mixed
$value, string
$name
)
|
|
Unshift a value on a variable
If the variable is not an array, it is conerted to.
Unshift a value on a variable
If the variable is not an array, it is conerted to. If the variable is not definet, it will be created as an array.
Parameters:
|
string |
$name: |
The variable name |
|
mixed |
$value: |
The variable value |
|
|
$var: |
|
API Tags:
void usort(
string
$var, int
$cmp_function
)
|
|
Sort the contents of a variable using a user callback
Sort the contents of a variable using a user callback
If the variable is not an array or not defined, nothing happens
Parameters:
|
string |
$var: |
The variable name |
|
int |
$cmp_function: |
The sorting function |
API Tags:
void var_changed(
string
$name,
&$value, mixed
$value
)
|
|
An inheritable function to notify a variable update
An inheritable function to notify a variable update
Parameters:
|
string |
$name: |
The variable name that was updated |
|
mixed |
$value: |
The variable value |
|
|
&$value: |
|
API Tags:
Redefined in descendants as:
void var_removed(
string
$name
)
|
|
An inheritable function to notify a variable removal
An inheritable function to notify a variable removal
Parameters:
|
string |
$name: |
The variable name that was removed |
API Tags:
Redefined in descendants as:
void __get(
string
$name
)
|
|
Get data variables
Get data variables
Parameters:
|
string |
$name: |
The variable name to return |
API Tags:
void __isset(
string
$name
)
|
|
Check for defined variables
Check for defined variables
Parameters:
|
string |
$name: |
The variable name to check |
API Tags:
void __set(
string
$name, mixed
$value
)
|
|
Set data variables
Set data variables
Parameters:
|
string |
$name: |
The variable name to define |
|
mixed |
$value: |
The variable value |
API Tags:
void __unset(
string
$name
)
|
|
Unset a variable
Unset a variable
Parameters:
|
string |
$name: |
The variable name to unset |
API Tags: