BBCode::Internal_RewindToClass( $class_list )
Description
Source
File: bp-forums/admin/parser.php
1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 | 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; } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.