Class WikiParser

Description
Variable Summary
 mixed $arr_lines
 mixed $idx
Method Summary
 WikiParser WikiParser ()
 void append_line ( &$tpl, [ $line = 'UNDEFINED'])
 void block_end ()
 void block_start ()
 void empty_line ()
 void end_of_lines ()
 void get_bullet ( $mark)
 void get_indentation ( $mark)
 void link_template ( &$parent,  $child)
 void listitem_end ( $mark)
 void listitem_start ( $mark)
 void list_end ( $mark)
 void list_start ([ $mark = ''])
 void next_line ()
 void nonempty_line ()
 void parse_block ()
 void parse_file ( $filename)
 void parse_info ()
 void parse_lines ( $arr_lines)
 void parse_list ()
 void parse_listitem ( $mark)
 void parse_paragraph ()
 void parse_string ( $str)
 void parse_text ()
 void template_list ()
 void to_tree ( $tpl,  $indent)
 void tpl_to_tree ()
Variables
mixed $arr_lines (line 32)

lines that will be parsed and their index

mixed $idx (line 33)
Methods
Constructor WikiParser (line 35)
WikiParser WikiParser ()
append_line (line 296)

append the current line to the given template

void append_line ( &$tpl, [ $line = 'UNDEFINED'])
  • &$tpl
  • $line
block_end (line 334)
void block_end ()
block_start (line 324)
void block_start ()
empty_line (line 312)
void empty_line ()
end_of_lines (line 283)

return true if the index is at the end of the lines

void end_of_lines ()
get_bullet (line 356)

return the bullet of the given mark

void get_bullet ( $mark)
  • $mark
get_current_line (line 276)

get the current line that is being parsed

void get_current_line ()
get_indentation (line 349)

return the indentaion of the given mark

void get_indentation ( $mark)
  • $mark
get_listitem_mark (line 340)
void get_listitem_mark ()
link_template (line 303)

add a link from the parent template to the child template

void link_template ( &$parent,  $child)
  • &$parent
  • $child
listitem_end (line 450)
void listitem_end ( $mark)
  • $mark
listitem_start (line 435)
void listitem_start ( $mark)
  • $mark
list_end (line 392)
void list_end ( $mark)
  • $mark
list_start (line 363)

return true if the current line starts a new list

void list_start ([ $mark = ''])
  • $mark
next_line (line 290)

move the index to the nex line

void next_line ()
nonempty_line (line 318)
void nonempty_line ()
parse_block (line 139)
void parse_block ()
parse_file (line 44)
void parse_file ( $filename)
  • $filename
parse_info (line 176)
void parse_info ()
parse_lines (line 69)
void parse_lines ( $arr_lines)
  • $arr_lines
parse_list (line 216)
void parse_list ()
parse_listitem (line 237)
void parse_listitem ( $mark)
  • $mark
parse_paragraph (line 110)
void parse_paragraph ()
parse_string (line 57)
void parse_string ( $str)
  • $str
parse_text (line 82)

parse the text wiki

void parse_text ()
template_list (line 498)

(debug) Outputs the data of each template in $tpl_collection.

void template_list ()
to_tree (line 537)

Returns the structure of loaded templates as a tree.

void to_tree ( $tpl,  $indent)
  • $tpl
  • $indent
tpl_to_tree (line 523)

(debug) Returns the structure of the loaded templates as a tree.

void tpl_to_tree ()

Documentation generated on Wed, 09 Jan 2008 08:26:51 +0100 by phpDocumentor 1.3.2