Tempcode (compiled implementation).
| package | core |
|---|
__construct(\?array $details = null)
\?arrayPair: Code to preexecute, Initialisation seq-parts (null: start as empty)
__sleep() : array
arrayWhat is to be serialised__toString() : string
stringThe evaluated thing.attach(mixed $attach, boolean $avoid_child_merge = false)
mixedThe Tempcode/string to attach
booleanIf we've already merged the children from what we're attaching into the child tree (at bind stage)
bind(array $parameters, \ID_TEXT $codename) : \Tempcode
arrayMap of parameters to bind parameter bits to
\ID_TEXTThe codename of the template this Tempcode is from
\TempcodeThe new bound Tempcode objectdecache()
evaluate(\?LANGUAGE_NAME $current_lang = null) : string
\?LANGUAGE_NAMEThe language to evaluate with (null: current user's language)
stringThe evaluated thing. Voila, it's all over!evaluate_echo(\?LANGUAGE_NAME $current_lang= null, boolean $stop_if_stuck= false) : string
\?LANGUAGE_NAMEThe language to evaluate with (null: current users language)
booleanWhether to stop if we are stuck of a seq_part with parameters yet-unbound, and to continue from last resume point
stringBlank string. Allows chaining within echo statementsfrom_assembly(string $raw_data, boolean $allow_failure = false) : boolean
stringThe assembled Tempcode
booleanReturn error code on failure, rather than exiting
booleanSuccess status (it can fail, if the compiled cache file is corrupt)from_assembly_executed(\PATH $file, array $forced_reload_details) : boolean
\PATHThe file to load
arrayList of parameters for a forced reload if required
booleanSuccess status (it can fail, if the compiled cache file is corrupt)handle_symbol_preprocessing()
is_empty() : boolean
booleanWhether the Tempcode object is emptyis_empty_shell() : boolean
Does not perform an evaluation, so will not trigger any early pre-processing or out-of-order evaluation.
booleanWhether it is entirely emptyparameterless(integer $at) : boolean
integerOffset to the variable
booleanWhether it is parameterlessparse_from(string $code, integer $pos, integer $len)
stringCode string (input stream)
integerStart position of input string
integerEnd position of input string
singular_bind(string $parameter, \Tempcode $value)
stringNamed parameter
\TempcodeSpecific value
to_assembly() : string
stringThe assembly result_mark_all_as_escaped(boolean $top_level = true)
booleanWhether this is the top-level call
$cached_output
$children
null$code_to_preexecute
$codename
':container'$evaluate_echo_offset_group
0$evaluate_echo_offset_inner
0$fresh
null$preprocessable_bits
$preprocessed
false$pure_lang
$seq_parts