Function __global->restore_output_state

Definitions

sources/global3.php

  • Restore the last output state on the stack, or a fresh one if none was pushed.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$just_tempcode boolean No No False N/A N/A Whether to only restore the Tempcode execution part of the state
$merge_current boolean No No False N/A N/A Whether to merge the current output state in (or take precedence when merging isn't applicable)
$keep ?array No No Null N/A N/A Settings to keep (not replace) / merge if possible (null: merge all)

Preview

Code (PHP)

/**
 * Restore the last output state on the stack, or a fresh one if none was pushed.
 *
 * @param  boolean $just_tempcode Whether to only restore the Tempcode execution part of the state
 * @param  boolean $merge_current Whether to merge the current output state in (or take precedence when merging isn't applicable)
 * @param  ?array $keep Settings to keep (not replace) / merge if possible (null: merge all)
 */

function restore_output_state(bool $just_tempcode = false, bool $merge_current = false, ?array $keep = null)