svn: /pear/packages/Text_Wiki/trunk/Text/ Wiki.php
| From: | Till Klampaeckel | Date: | Sat, 19 Mar 2011 18:59:15 +0000 |
| Subject: | svn: /pear/packages/Text_Wiki/trunk/Text/ Wiki.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-61499@lists.php.net to get a copy of this message | ||
till Sat, 19 Mar 2011 18:59:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309447
Log:
* added __construct() for PHP5
Changed paths:
U pear/packages/Text_Wiki/trunk/Text/Wiki.php
Modified: pear/packages/Text_Wiki/trunk/Text/Wiki.php
===================================================================
--- pear/packages/Text_Wiki/trunk/Text/Wiki.php 2011-03-19 18:58:28 UTC (rev 309446)
+++ pear/packages/Text_Wiki/trunk/Text/Wiki.php 2011-03-19 18:59:15 UTC (rev 309447)
@@ -379,10 +379,12 @@
*
* @access public
*
- * @param array $rules The set of rules to load for this object. Defaults
- * to null, which will load the default ruleset for this parser.
+ * @param array $rules The set of rules to load for this object. Defaults to null
+ * which will load the default ruleset for this parser.
+ *
+ * @return $this
+ * @see self::__construct()
*/
-
function Text_Wiki($rules = null)
{
if (is_array($rules)) {
@@ -404,6 +406,19 @@
}
/**
+ * A fix for PHP5.
+ *
+ * @param mixed $rules null or an array.
+ *
+ * @return $this
+ * @uses self::Text_Wiki()
+ */
+ function __construct($rules = null)
+ {
+ $this->Text_Wiki($rules);
+ }
+
+ /**
* Singleton.
*
* This avoids instantiating multiple Text_Wiki instances where a number