class WPV_Editor_Parser
__construct(string $content, array $shortcodes)
stringstring to parse
arraylist of supported shortcodes and their options
parse() : \[type]
Two special node types: 1. ROOT - a single root element 2. text - unrecognized shortcodes and text blocks. Adjascent text nodes are collapsed together
\[type][description]get_attributes(int $pos)
intparser position
get_type(int $pos) : array
intparser position
arrayarray of two elements - shortcode type and parser positionignore_whitespace(int $pos) : int
intparser position
intparser positionis_accepting(string $type) : boolean
stringshortcode type
booleantrue if nested shortcodes are enabled for $typeis_supported(string $type) : boolean
stringshortcode type
booleantrue if a shortcode of type $type is supported by the Vamtam editorknown_shortcodes()
splits the original list in two)
new_block(string $type, \object $parent) : object
stringnode type
\objectreference to the new node's parent node
objectnewly constructed nodeprepare() : string
stringcleaned up contenttrim_text_nodes(int $pos) : int
intparser position
intparser position after trimming the text