\Text_Wiki_Render_Rst_Table2

Renders a table for a Wiki page.

Summary

Methods
Properties
Constants
__construct()
getConf()
formatConf()
urlEncode()
textEncode()
token()
renderTable()
$conf
$format
$rule
$wiki
No constants found
No protected methods found
$_spans
$_row
$_col
$_header
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

$_spans

$_spans : array

The cell spans.

Type

array

$_row

$_row : integer

The current row.

Type

integer

$_col

$_col : integer

The current column.

Type

integer

$_header

$_header : integer

The number of the header row.

reST only allows for one header.

Type

integer

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(array  $options) : string

Renders a token into text matching the requested format.

Parameters

array $options

The "options" portion of the token (second element).

Returns

string —

The text rendered from the token options.

renderTable()

renderTable(  $text) 

Parameters

$text