DataStorage DataStorage(
)
|
|
Class constructor
void Add(
string
$varName, [mixed
$value = 1]
)
|
|
Add $value to data item $varName. If $value is not specified - is assumed.
Parameters:
string |
$varName: |
Data item name |
mixed |
$value: |
|
API Tags:
Load the specified template file
Parameters:
API Tags:
void AddCounter(
object CXml2array
$Cfg
)
|
|
Parameters:
API Tags:
void AddFieldXml(
object XCml2Array
$Cfg
)
|
|
Add new field to field table
Parameters:
object XCml2Array |
$Cfg: |
Object with the fields definition |
API Tags:
void EvalText(
string
$text
)
|
|
Evaluate the text (=run eval on the text passed)
Parameters:
boolean ExistValue(
string
$VarName, [integer
$ValueType = CURRENTVALUE]
)
|
|
Check whether a data field exists.
It doesn't support tha array
Parameters:
string |
$VarName: |
Data field name. VarName must be scalar |
integer |
$ValueType: |
Use the value from the current row or from the previous row |
API Tags:
string GetEvalValue(
string
$VarName, string
$Value
)
|
|
Return tha value for tha data field $VarName. Function used during eval'ing the row Use GetVar to retrieve the value of the specified data item
This function apply the format parameter to the value
Parameters:
string |
$VarName: |
data field name |
string |
$Value: |
value for data field |
API Tags:
string GetVar(
string
$VarName, [integer
$ValueType = CURRENTVALUE]
)
|
|
Return tha value for tha data field $VarName
Parameters:
string |
$VarName: |
data field name. VarName must be scalar |
integer |
$ValueType: |
where get the value, from the current or the previous? |
API Tags:
void RemoveCounter(
string
$name
)
|
|
Parameters:
API Tags:
void RemoveFromValue(
array
$fields
)
|
|
Remove from $Values all data fields added from the current data row.
Parameters:
array |
$fields: |
Data field for the current row. |
API Tags:
void ResetCounter(
array
$CounterName
)
|
|
Set the counters to zero
Parameters:
array |
$CounterName: |
CounterName array holding the name of the counter to set to zero |
API Tags:
boolean SetVar(
string
$varName, string
$value
)
|
|
Set/add a value for data field
Parameters:
string |
$varName: |
data field name. VarName must be scalar |
string |
$value: |
value for data field. It may be an array |
API Tags:
void ToValue(
array
$fields
)
|
|
Put into the array $Value each data from the fiels array.
The parameter $fields is an associative array where the index is the data field name and the value is the data field value
Parameters:
array |
$fields: |
Data field for the current row. |
API Tags:
void UpdateCounters(
array
$CounterName
)
|
|
Update counter. Each counter will be added to its field
Parameters:
array |
$CounterName: |
CounterName array holding the name of the counter to update |
API Tags: