From: <var...@us...> - 2014-11-11 14:15:02
|
Revision: 9305 http://sourceforge.net/p/phpwiki/code/9305 Author: vargenau Date: 2014-11-11 14:14:55 +0000 (Tue, 11 Nov 2014) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/WysiwygEdit.php Modified: trunk/lib/WysiwygEdit.php =================================================================== --- trunk/lib/WysiwygEdit.php 2014-11-10 21:08:06 UTC (rev 9304) +++ trunk/lib/WysiwygEdit.php 2014-11-11 14:14:55 UTC (rev 9305) @@ -40,6 +40,8 @@ * Handler to convert the Wiki Markup to HTML before editing. * This will be converted back by WysiwygEdit_ConvertAfter if required. * *text* => '<b>text<b>' + * + * @param $text */ function ConvertBefore($text) { @@ -54,6 +56,8 @@ * '<b>text<b>' => '<span style="font-weight: bold">text</span>' => '*text*' * * TODO: Switch over to HtmlParser + * + * @param $text */ function ConvertAfter($text) { @@ -128,18 +132,17 @@ class HtmlTransformer extends InlineTransformer { - function HtmlTransformer($tags = false) + function __construct($tags = false) { - if (!$tags) $tags = - array('escape', 'html_br', 'html_spanbold', 'html_simple_tag', - 'html_p',); + if (!$tags) + $tags = array('escape', 'html_br', 'html_spanbold', 'html_simple_tag', 'html_p',); /* 'html_a','html_span','html_div', 'html_table','html_hr','html_pre', 'html_blockquote', 'html_indent','html_ol','html_li','html_ul','html_img' */ - return $this->InlineTransformer($tags); + parent::__construct($tags); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |