Definition at line 29 of file class.Tpl.php.
Public Member Functions | |
Tpl ($type='Template') | |
Constructor. | |
get_tpl_id ($line) | |
If the given line is a reference to another template, returns the id of the referenced template, otherwise return empty string ''. | |
get_subtemplates () | |
Returns an array of ids of the templates that are referenced from the contents of this template. | |
to_html ($indent='', $class='') | |
line_to_html ($line, $indent) | |
to_xml ($indent='') | |
line_to_xml ($line, $indent) | |
to_html_table () | |
Debug function. | |
Public Attributes | |
$id | |
$type | |
$contents |
Tpl::Tpl | ( | $ | type = 'Template' |
) |
Constructor.
Definition at line 36 of file class.Tpl.php.
References $type.
Referenced by Block::Block(), Listing::Listing(), ListItem::ListItem(), Paragraph::Paragraph(), and Text::Text().
Tpl::get_tpl_id | ( | $ | line | ) |
If the given line is a reference to another template, returns the id of the referenced template, otherwise return empty string ''.
Definition at line 50 of file class.Tpl.php.
Referenced by get_subtemplates(), to_html(), to_html_table(), and to_xml().
Tpl::get_subtemplates | ( | ) |
Returns an array of ids of the templates that are referenced from the contents of this template.
Definition at line 60 of file class.Tpl.php.
References get_tpl_id().
Referenced by ListItem::to_html(), and ListItem::to_xml().
Tpl::to_html | ( | $ | indent = '' , |
|
$ | class = '' | |||
) |
Reimplemented in Block, Listing, ListItem, and Paragraph.
Definition at line 72 of file class.Tpl.php.
References $tpl_collection, get_tpl_id(), and line_to_html().
Referenced by Paragraph::to_html(), ListItem::to_html(), Listing::to_html(), and Block::to_html().
Tpl::line_to_html | ( | $ | line, | |
$ | indent | |||
) |
Reimplemented in Block, and Text.
Definition at line 96 of file class.Tpl.php.
References regex_replace().
Referenced by to_html().
Tpl::to_xml | ( | $ | indent = '' |
) |
Reimplemented in Block, Listing, ListItem, and Paragraph.
Definition at line 102 of file class.Tpl.php.
References $tpl_collection, get_tpl_id(), and line_to_xml().
Referenced by Paragraph::to_xml(), ListItem::to_xml(), Listing::to_xml(), and Block::to_xml().
Tpl::line_to_xml | ( | $ | line, | |
$ | indent | |||
) |
Reimplemented in Block, and Text.
Definition at line 127 of file class.Tpl.php.
References regex_replace().
Referenced by to_xml().
Tpl::to_html_table | ( | ) |
Tpl::$id |
Definition at line 31 of file class.Tpl.php.
Referenced by Block::Block(), Listing::Listing(), ListItem::ListItem(), and Paragraph::Paragraph().
Tpl::$type |
Definition at line 32 of file class.Tpl.php.
Referenced by Block::Block(), Listing::to_html(), Listing::to_xml(), Block::to_xml(), and Tpl().
Tpl::$contents |