Moodle  2.2.1
http://www.collinsharper.com
creole_parser Class Reference
Inheritance diagram for creole_parser:
Collaboration diagram for creole_parser:

Protected Member Functions

 before_parsing ()
 header_block_rule ($match)
 table_block_rule ($match)
 paragraph_block_rule ($match)
 url_tag_rule ($match)
 link_tag_rule ($match)
 bold_tag_rule ($match)
 image_tag_rule ($match)

Protected Attributes

 $blockrules
 $tagrules

Detailed Description

Definition at line 14 of file creole.php.


Member Function Documentation

before_parsing ( ) [protected]

Block hooks

Reimplemented from wiki_markup_parser.

Definition at line 89 of file creole.php.

bold_tag_rule ( match) [protected]

Special treatment of // ** // ** //

Definition at line 196 of file creole.php.

Here is the call graph for this function:

header_block_rule ( match) [protected]

Definition at line 94 of file creole.php.

Here is the call graph for this function:

image_tag_rule ( match) [protected]

Definition at line 205 of file creole.php.

Here is the call graph for this function:

link_tag_rule ( match) [protected]

Definition at line 182 of file creole.php.

Here is the call graph for this function:

paragraph_block_rule ( match) [protected]

Definition at line 141 of file creole.php.

table_block_rule ( match) [protected]

Table generation

Definition at line 108 of file creole.php.

Here is the call graph for this function:

url_tag_rule ( match) [protected]

Tag functions

Definition at line 170 of file creole.php.


Field Documentation

$blockrules [protected]
Initial value:
 array(
        'nowiki' => array(
            'expression' => "/^\{\{\{(.*?)\}\}\}/ims",
            'tags' => array(),
            'token' => array('{{{', '}}}')
        ),
        'header' => array(
            'expression' => "/^\ *(={1,6})\ *(.+?)=*\ *$/ims",
            'tags' => array(), 
            'token' => '='
        ),
        'table' => array(
            'expression' => "/^(?:\|.*?\|\ *\n)+/ims"
        ),
        'line_break' => array(
            'expression' => "/^----\s*$/im",
            'token' => '----',
            'tags' => array()
        ),
        'list' => array(
            'expression' => "/((?:^\ *[\*#][^\*#]\ *.+?)(?:^\ *[\*#]{1,5}\ *.+?)*)(\n\s*(?:\n|<(?:h\d|pre|table|tbody|thead|tr|th|td|ul|li|ol|hr)))/ims",
            'tags' => array(),
            'token' => array('*', '#')
        ),
        'paragraph' => array(
            'expression' => "/^\ *((?:<(?!\ *\/?(?:h\d|pre|table|tbody|thead|tr|th|td|ul|li|ol|hr)\ *\/?>)|[^<\s]).+?)\n\s*\n/ims",
            
            'tag' => 'p'
        )
    )

Reimplemented from generic_parser.

Definition at line 16 of file creole.php.

$tagrules [protected]

Reimplemented from generic_parser.

Definition at line 47 of file creole.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations