Public Member Functions | |
CBTValue ($text= '', $deps=array(), $isTemplate=false) | |
Create a new value. | |
cat ($val) | |
Concatenate two values, merging their dependencies. | |
addDeps ($values) | |
Add the dependencies of another value to this one. | |
removeDeps ($deps) | |
Remove a list of dependencies. | |
setText ($text) | |
getText () | |
getDeps () | |
execute (&$processor) | |
If the value is a template, execute it. | |
templateEscape () | |
If the value is plain text, escape it for inclusion in a template. | |
isStatic () | |
Return true if the value has no dependencies. | |
Public Attributes | |
$mText | |
$mDeps | |
$mIsTemplate |
Definition at line 50 of file CBTProcessor.php.
CBTValue::addDeps | ( | $ | values | ) |
CBTValue::cat | ( | $ | val | ) |
Concatenate two values, merging their dependencies.
Definition at line 70 of file CBTProcessor.php.
References addDeps().
CBTValue::CBTValue | ( | $ | text = '' , |
|
$ | deps = array() , |
|||
$ | isTemplate = false | |||
) |
Create a new value.
$text | String: , default ''. | |
$deps | Array: what this value depends on | |
$isTemplate | Bool: whether the result needs compilation/execution, default 'false'. |
Definition at line 59 of file CBTProcessor.php.
References $text.
CBTValue::execute | ( | &$ | processor | ) |
If the value is a template, execute it.
Definition at line 112 of file CBTProcessor.php.
References $processor, and addDeps().
CBTValue::getDeps | ( | ) |
Definition at line 107 of file CBTProcessor.php.
CBTValue::getText | ( | ) |
Definition at line 103 of file CBTProcessor.php.
CBTValue::isStatic | ( | ) |
CBTValue::removeDeps | ( | $ | deps | ) |
CBTValue::setText | ( | $ | text | ) |
CBTValue::templateEscape | ( | ) |
If the value is plain text, escape it for inclusion in a template.
Definition at line 131 of file CBTProcessor.php.
References cbt_escape().
CBTValue::$mDeps |
Definition at line 51 of file CBTProcessor.php.
CBTValue::$mIsTemplate |
Definition at line 51 of file CBTProcessor.php.
CBTValue::$mText |
Definition at line 51 of file CBTProcessor.php.