Tempcode (compiled implementation).
package | core |
---|
__construct(\?array $details = null
)
\?array
Pair: Code to preexecute, Initialisation seq-parts (null: start as empty)
__sleep() : array
array
What is to be serialised__toString() : string
string
The evaluated thing.attach(mixed $attach, boolean $avoid_child_merge = false
)
mixed
The Tempcode/string to attach
boolean
If 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
array
Map of parameters to bind parameter bits to
\ID_TEXT
The codename of the template this Tempcode is from
\Tempcode
The new bound Tempcode objectdecache()
evaluate(\?LANGUAGE_NAME $current_lang = null
) : string
\?LANGUAGE_NAME
The language to evaluate with (null: current user's language)
string
The evaluated thing. Voila, it's all over!evaluate_echo(\?LANGUAGE_NAME $current_lang= null
, boolean $stop_if_stuck= false
) : string
\?LANGUAGE_NAME
The language to evaluate with (null: current users language)
boolean
Whether to stop if we are stuck of a seq_part with parameters yet-unbound, and to continue from last resume point
string
Blank string. Allows chaining within echo statementsfrom_assembly(string $raw_data, boolean $allow_failure = false
) : boolean
string
The assembled Tempcode
boolean
Return error code on failure, rather than exiting
boolean
Success status (it can fail, if the compiled cache file is corrupt)from_assembly_executed(\PATH $file, array $forced_reload_details) : boolean
\PATH
The file to load
array
List of parameters for a forced reload if required
boolean
Success status (it can fail, if the compiled cache file is corrupt)handle_symbol_preprocessing()
is_empty() : boolean
boolean
Whether 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.
boolean
Whether it is entirely emptyparameterless(integer $at) : boolean
integer
Offset to the variable
boolean
Whether it is parameterlessparse_from(string $code, integer $pos, integer $len)
string
Code string (input stream)
integer
Start position of input string
integer
End position of input string
singular_bind(string $parameter, \Tempcode $value)
string
Named parameter
\Tempcode
Specific value
to_assembly() : string
string
The assembly result_mark_all_as_escaped(boolean $top_level = true
)
boolean
Whether 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