|
KWeb
6.4
|
"Język" skryptowy do wykorzystywania w niektórych polach tekstowych, np. More...
Public Member Functions | |
| parse_preg ($line, &$vars) | |
| parse ($str, $vars=null, $recurency=true) | |
| Parsuje ciąg znaków wykonując wybrane komendy. | |
| registerFuncStatic ($command, $class, $function) | |
| registerEval ($command, $eval) | |
Static Public Member Functions | |
| static | isInitialized () |
| static | instance ($create=true) |
| static | handleTextParser ($parser) |
| registerFunc ($command, $function) | |
Data Fields | |
| $handlers = array() | |
Static Public Attributes | |
| static | $inst = null |
Protected Member Functions | |
| __construct () | |
"Język" skryptowy do wykorzystywania w niektórych polach tekstowych, np.
treści artykułów
{{ komenda | parametr0 | parametr1 | parametr=wartość \| wartość dalej }}
| KScript::__construct | ( | ) | [protected] |
Reimplemented in KWebScript.
| static KScript::handleTextParser | ( | $ | parser | ) | [static] |
| $parser | TextParser |
| static KScript::instance | ( | $ | create = true | ) | [static] |
Reimplemented in KWebScript.
| static KScript::isInitialized | ( | ) | [static] |
| KScript::parse | ( | $ | str, |
| $ | vars = null, |
||
| $ | recurency = true |
||
| ) |
Parsuje ciąg znaków wykonując wybrane komendy.
| KScript::parse_preg | ( | $ | line, |
| &$ | vars | ||
| ) |
| KScript::registerEval | ( | $ | command, |
| $ | eval | ||
| ) |
| KScript::registerFunc | ( | $ | command, |
| $ | function | ||
| ) | [static] |
| command | Komenda |
| function | Script callback as function($params) |
$params Unnamed parameters are passed as integer indexes ($param[0]). Special keys are:
| KScript::registerFuncStatic | ( | $ | command, |
| $ | class, | ||
| $ | function | ||
| ) |
| KScript::$handlers = array() |
KScript::$inst = null [static] |
Reimplemented in KWebScript.