Go to the source code of this file.
Namespaces | |
| namespace | docbook |
Functions | |
| get_node_content ($xml_file, $mode) | |
| Builds the content of the node by processing content.xml with xml2mode.xsl, and assigns it to a template variable. | |
| strip_cdata ($str) | |
| replace <![CDATA[. | |
| strip_comments ($str) | |
| replace by <comment>x</comment> | |
| putback_comments ($str) | |
| replace <comment>x</comment> by the corresponding | |
| putback_cdata ($str, $mode='xml') | |
| replace <cdata>x</cdata> by the corresponding <![CDATA[. | |
| expand_cdata ($content) | |
| Replace implicit CDATA like this: --tag-- abc xyz ---- by an explicit CDATA like this: --tag <![CDATA[abc xyz]]> ----. | |
| compact_cdata ($content) | |
| Replace explicit CDATA like this: --tag <![CDATA[abc xyz]]> ---- by a compact (implicit) CDATA like this: --tag-- abc xyz ----. | |
| get_node_content | ( | $ | xml_file, | |
| $ | mode | |||
| ) |
Builds the content of the node by processing content.xml with xml2mode.xsl, and assigns it to a template variable.
Definition at line 39 of file process_content.php.
References $mode, compact_cdata(), putback_cdata(), putback_comments(), shell(), strip_cdata(), strip_comments(), and write_tmp_file().
Referenced by revisions::add_rev_diff(), approve::get_content_diff(), and edit_content::onRender().
| strip_cdata | ( | $ | str | ) |
replace <![CDATA[.
..]]> by <cdata>x</cdata>
Definition at line 76 of file process_content.php.
Referenced by get_node_content(), and edit_content::on_save().
| strip_comments | ( | $ | str | ) |
replace by <comment>x</comment>
Definition at line 93 of file process_content.php.
Referenced by get_node_content(), and edit_content::on_save().
| putback_comments | ( | $ | str | ) |
replace <comment>x</comment> by the corresponding
Definition at line 110 of file process_content.php.
Referenced by edit_content::error_on_save(), get_node_content(), and edit_content::on_save().
| putback_cdata | ( | $ | str, | |
| $ | mode = 'xml' | |||
| ) |
replace <cdata>x</cdata> by the corresponding <![CDATA[.
..]]>
Definition at line 121 of file process_content.php.
References $mode.
Referenced by edit_content::error_on_save(), get_node_content(), and edit_content::on_save().
| expand_cdata | ( | $ | content | ) |
Replace implicit CDATA like this: --tag-- abc xyz ---- by an explicit CDATA like this: --tag <![CDATA[abc xyz]]> ----.
Also, replace [[xyz]] by <![CDATA[xyz]]>
Definition at line 151 of file process_content.php.
Referenced by edit_content::on_save().
| compact_cdata | ( | $ | content | ) |
Replace explicit CDATA like this: --tag <![CDATA[abc xyz]]> ---- by a compact (implicit) CDATA like this: --tag-- abc xyz ----.
Also, replace <![CDATA[xyz]]> by [[xyz]]
Definition at line 190 of file process_content.php.
Referenced by edit_content::error_on_save(), and get_node_content().
1.5.2