class WPV_Editor_Parser
__construct(string $content, array $shortcodes = array())
stringstring to parse
arraylist of supported shortcodes and their options
parse() : \[type]
Two special node types:
\[type][description]
prepare() : string
stringcleaned up content
new_block(string $type, \&object &$parent = null) : object
stringnode type
\&objectreference to the new node's parent node
objectnewly constructed node
trim_text_nodes(int $pos) : int
intparser position
intparser position after trimming the text
get_type(int $pos) : array
intparser position
arrayarray of two elements - shortcode type and parser position
get_attributes(int $pos)
intparser position
ignore_whitespace(int $pos) : int
intparser position
intparser position
is_accepting(string $type) : boolean
stringshortcode type
booleantrue if nested shortcodes are enabled for $type
is_supported(string $type) : boolean
stringshortcode type
booleantrue if a shortcode of type $type is supported by the Vamtam editor
known_shortcodes()