Dotclear 2.24
Loading...
Searching...
No Matches
wiki2xhtml Class Reference

Public Member Functions

 __construct ()
 
 setOpt (string $option, $value)
 
 setOpts (array $options)
 
 getOpt (string $option)
 
 registerFunction (string $type, $name)
 
 transform (string $wiki)
 
 help ()
 

Data Fields

const VERSION = '3.2.23'
 
const MACRO_FN_PREFIX = 'macro:'
 
 $opt
 
 $acro_table
 
 $foot_notes
 
 $macros
 
 $functions
 
 $wiki_lines
 
 $tags
 
 $custom_tags = []
 
 $open_tags
 
 $close_tags
 
 $all_tags
 
 $escape_table
 
 $tag_pattern
 
 $linetags
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructs a new instance.

References h4, registerFunction(), and setOpt().

Member Function Documentation

◆ setOpt()

setOpt ( string  $option,
  $value 
)

Sets the option.

Parameters
string$optionThe option
mixed$valueThe value

Referenced by __construct(), and transform().

◆ setOpts()

setOpts ( array  $options)

Sets the options.

Parameters
array$optionsThe options

Referenced by dcCore\initWikiComment(), dcCore\initWikiPost(), and dcCore\initWikiSimpleComment().

◆ getOpt()

getOpt ( string  $option)

Gets the option.

Parameters
string$optionThe option
Returns
mixed The option.

Referenced by help(), and transform().

◆ registerFunction()

registerFunction ( string  $type,
  $name 
)

Register a function

Parameters
string$typeThe type
callable | array$nameThe name

Referenced by __construct(), tagsBehaviors\coreInitWikiPost(), and dcCore\initWikiPost().

◆ transform()

transform ( string  $wiki)

Convert wiki string to HTML

Parameters
string$wiki
Returns
string

References $ret, getOpt(), and setOpt().

◆ help()

help ( )

Return wiki syntax help

Returns
string

References getOpt().

Field Documentation

◆ VERSION

const VERSION = '3.2.23'

◆ MACRO_FN_PREFIX

const MACRO_FN_PREFIX = 'macro:'

◆ $opt

$opt

◆ $acro_table

$acro_table

◆ $foot_notes

$foot_notes

◆ $macros

$macros

◆ $functions

$functions

◆ $wiki_lines

$wiki_lines

◆ $tags

$tags

◆ $custom_tags

$custom_tags = []

◆ $open_tags

$open_tags

◆ $close_tags

$close_tags

◆ $all_tags

$all_tags

◆ $escape_table

$escape_table

◆ $tag_pattern

$tag_pattern

◆ $linetags

$linetags

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