Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
html_parser Class Reference
Inheritance diagram for html_parser:
nwiki_parser

Public Member Functions

 get_section ($header, $text, $clean=false)
 Section editing: Special for HTML Parser (It parses. More...
 

Protected Member Functions

 after_parsing ()
 
 attach_tag_rule ($match)
 
 before_parsing ()
 
 desc_list_block_rule ($match)
 
 find_min_header_level ($text)
 Find minimum header level used on the page (. More...
 
 get_repeated_sections (&$text, $repeated=array())
 
 get_repeated_sections_callback ($match)
 
 header_block_rule ($match)
 Block hooks.
 
 header_tag_rule ($match)
 Header tag rule. More...
 
 image_tag_rule ($match)
 Attachments & images.
 
 italic_tag_rule ($match)
 Tag functions. More...
 
 link_tag_rule ($match)
 Link tag functions.
 
 tab_paragraph_block_rule ($match)
 
 table_block_rule ($match)
 
 url_tag_rule ($match)
 
 url_tag_tag_rule ($match)
 

Protected Attributes

 $blockrules = array()
 
int $minheaderlevel = null
 Minimum level of the headers on the page (usually tinymce uses. More...
 
 $section_editing = true
 
 $tagrules
 

Member Function Documentation

◆ find_min_header_level()

html_parser::find_min_header_level (   $text)
protected

Find minimum header level used on the page (.

, , ...) @param string $text @retval int

◆ get_section()

html_parser::get_section (   $header,
  $text,
  $clean = false 
)

Section editing: Special for HTML Parser (It parses.

)

◆ header_tag_rule()

html_parser::header_tag_rule (   $match)
protected

Header tag rule.

Parameters
array$matchHeader regex match
Return values
string

◆ italic_tag_rule()

nwiki_parser::italic_tag_rule (   $match)
protectedinherited

Tag functions.

Bold and italic similar to creole...

Member Data Documentation

◆ $minheaderlevel

int html_parser::$minheaderlevel = null
protected

Minimum level of the headers on the page (usually tinymce uses.

and atto )


The documentation for this class was generated from the following file: