Function __global->tc_add_to_current_level_data
Definitions
sources/tempcode_compiler.php
- Append some data to the current level of the Tempcode stack.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$current_level_data | array | Yes | No | required parameter | N/A | N/A | The data being appended together on the current level of the stack |
| &$just_done_string | boolean | Yes | No | required parameter | N/A | N/A | Whether the most recent thing appended to $current_level_data was a simple string literal |
| $new_line | string | No | No | required parameter | N/A | N/A | More data to be appended on the current level of the stack (not technically a line, but we call it that) |
| $doing_string | boolean | No | No | False | N/A | N/A | Whether the new data is known to be a simple string literal |
Preview
Code (PHP)
/**
* Append some data to the current level of the Tempcode stack.
*
* @param array $current_level_data The data being appended together on the current level of the stack
* @param boolean $just_done_string Whether the most recent thing appended to $current_level_data was a simple string literal
* @param string $new_line More data to be appended on the current level of the stack (not technically a line, but we call it that)
* @param boolean $doing_string Whether the new data is known to be a simple string literal
*/
function tc_add_to_current_level_data(array &$current_level_data, bool &$just_done_string, string $new_line, bool $doing_string = false)
* Append some data to the current level of the Tempcode stack.
*
* @param array $current_level_data The data being appended together on the current level of the stack
* @param boolean $just_done_string Whether the most recent thing appended to $current_level_data was a simple string literal
* @param string $new_line More data to be appended on the current level of the stack (not technically a line, but we call it that)
* @param boolean $doing_string Whether the new data is known to be a simple string literal
*/
function tc_add_to_current_level_data(array &$current_level_data, bool &$just_done_string, string $new_line, bool $doing_string = false)

