BBCode::Internal_RewindToClass( $class_list )
Contents
Description Description
Source Source
File: includes/admin/parser.php
function Internal_RewindToClass($class_list) { $pos = count($this->stack) - 1; while ($pos >= 0 && !in_array($this->stack[$pos][BBCODE_STACK_CLASS], $class_list)) $pos--; if ($pos < 0) { if (!in_array($this->root_class, $class_list)) return false; } $output = $this->Internal_GenerateOutput($pos+1); while (count($output)) { $token = array_pop($output); $token[BBCODE_STACK_CLASS] = $this->current_class; $this->stack[] = $token; } return true; }