]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/commit
Another refactor of the OOP HTML/XML generation code. (Sorry.)
authordairiki <dairiki@96ab9672-09ca-45d6-a79d-3d69d39ca109>
Mon, 28 Jan 2002 18:49:08 +0000 (18:49 +0000)
committerdairiki <dairiki@96ab9672-09ca-45d6-a79d-3d69d39ca109>
Mon, 28 Jan 2002 18:49:08 +0000 (18:49 +0000)
commit561a6739a91116ffff3a474405373b0b0496c1e3
tree72c5f4da027ab68e811df008804e070e8e10c764
parentf83ed3ca2b55053d855e4ce81a658383d86bddb7
Another refactor of the OOP HTML/XML generation code.  (Sorry.)

New class XmlContent for a collection of XML content (without a tag).
(You should use this instead of an array, for representing a
sequence of XML elements.)  (The function HTML() is a shortcut
constructor, so where you would have done:
  $html = array(HTML::h2("Header),
                HTML::p("Paragraph"));
you should now do
  $html = HTML(HTML::h2("Header),
               HTML::p("Paragraph"));

And, instead of
  $html[] = HTML::p("Another par.");
do
  $html->pushContent(HTML::p("Another par."));

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@1668 96ab9672-09ca-45d6-a79d-3d69d39ca109
19 files changed:
lib/BlockParser.php
lib/ErrorManager.php
lib/HtmlElement.php
lib/PageList.php
lib/Theme.php
lib/XmlElement.php
lib/diff.php
lib/display.php
lib/loadsave.php
lib/main.php
lib/plugin/IncludePage.php
lib/plugin/PageHistory.php
lib/plugin/RecentChanges.php
lib/plugin/_BackendInfo.php
lib/prepend.php
lib/removepage.php
lib/savepage.php
lib/stdlib.php
lib/transform.php