Class: atkDataHolder
Source Location: /utils/class.atkdataholder.inc
Class atkDataHolder
Method Summary
| array |
&toArray() |
Convert to array, by default returns a copy of the original array. If $copy is set to false will return a reference to the internal array. |
| mixed |
__call() |
Retrieve variable value through method call. |
| mixed |
&__get() |
Returns a reference to the given variable. |
| void |
__set() |
Set variable. |
Methods
atkDataHolder __construct(
&$vars, array
$vars
)
|
|
Constructor.
Parameters:
array &toArray(
[bool
$copy = true]
)
|
|
Convert to array, by default returns a copy of the original array. If $copy is set to false will return a reference to the internal array.
Parameters:
|
bool |
$copy: |
return a copy or the original array? |
API Tags:
| Return: | array |
| Access: | public |
mixed __call(
string
$method, array
$args
)
|
|
Retrieve variable value through method call.
NOTE: this will always return a *copy* of the variable value!
Parameters:
|
string |
$method: |
method name |
|
array |
$args: |
arguments |
API Tags:
| Return: | variabel value (copy!) |
mixed &__get(
string
$name
)
|
|
Returns a reference to the given variable.
Parameters:
|
string |
$name: |
variable name |
API Tags:
boolean __isset(
string
$name
)
|
|
Is variable set?
Parameters:
|
string |
$name: |
variable name |
API Tags:
void __set(
string
$name, mixed
$value
)
|
|
Set variable.
Parameters:
|
string |
$name: |
variable name |
|
mixed |
$value: |
variable value |