\Text_Wiki_Render_Tiki_Heading

Base rendering class for parsed and tokenized text.

Summary

Methods
Properties
Constants
__construct()
getConf()
formatConf()
urlEncode()
textEncode()
token()
$conf
$format
$rule
$wiki
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$conf

$conf : string

Configuration options for this render rule.

Type

string

$format

$format : string

The name of this rule's format.

Type

string

$rule

$rule : string

The name of this rule's token array elements.

Type

string

$wiki

$wiki : object

A reference to the calling Text_Wiki object.

This is needed so that each rule has access to the same source text, token set, URLs, interwiki maps, page names, etc.

Type

object

Methods

__construct()

__construct(  $obj) 

Constructor for this render format or rule.

Parameters

$obj

getConf()

getConf(string  $key, mixed  $default = null) : mixed

Simple method to safely get configuration key values.

Parameters

string $key

The configuration key.

mixed $default

If the key does not exist, return this value instead.

Returns

mixed —

The configuration key value (if it exists) or the default value (if not).

formatConf()

formatConf(string  $format, string  $key) : mixed

Simple method to wrap a configuration in an sprintf() format.

Parameters

string $format

The sprintf() format string.

string $key

The configuration key.

Returns

mixed —

The formatted configuration key value (if it exists) or null (if it does not).

urlEncode()

urlEncode(string  $urlChunk) : \rendered

Default method to render url

Parameters

string $urlChunk

a part of an url to render

Returns

\rendered —

url

textEncode()

textEncode(string  $text) : \rendered

Default method to render text (htmlspecialchars)

Parameters

string $text

the text to render

Returns

\rendered —

text

token()

token(  $options) 

Parameters

$options