From: <var...@us...> - 2014-12-02 12:55:40
|
Revision: 9400 http://sourceforge.net/p/phpwiki/code/9400 Author: vargenau Date: 2014-12-02 12:55:31 +0000 (Tue, 02 Dec 2014) Log Message: ----------- static Modified Paths: -------------- trunk/lib/PageType.php trunk/lib/Request.php trunk/lib/WikiCallback.php trunk/lib/WikiDB.php Modified: trunk/lib/PageType.php =================================================================== --- trunk/lib/PageType.php 2014-12-02 12:51:39 UTC (rev 9399) +++ trunk/lib/PageType.php 2014-12-02 12:55:31 UTC (rev 9400) @@ -71,8 +71,6 @@ /** * Get a page type descriptor. * - * This is a static member function. - * * @param string $name Name of the page type. * @return PageType An object which is a subclass of PageType. */ Modified: trunk/lib/Request.php =================================================================== --- trunk/lib/Request.php 2014-12-02 12:51:39 UTC (rev 9399) +++ trunk/lib/Request.php 2014-12-02 12:55:31 UTC (rev 9400) @@ -1106,12 +1106,10 @@ /** * Get time zone offset. * - * This is a static member function. - * * @param int $time Unix timestamp (defaults to current time). * @return string Zone offset, e.g. "-0800" for PST. */ - function _zone_offset($time = 0) + static function _zone_offset($time = 0) { if (!$time) $time = time(); @@ -1129,8 +1127,6 @@ /** * Format time in NCSA format. * - * This is a static member function. - * * @param int $time Unix timestamp (defaults to current time). * @return string Formatted date & time. */ @@ -1248,9 +1244,8 @@ /** Parse tag from header. * - * This is a static member function. */ - function parse($strval) + static function parse($strval) { if (!preg_match(':^(W/)?"(.+)"$:i', trim($strval), $m)) return false; // parse failed Modified: trunk/lib/WikiCallback.php =================================================================== --- trunk/lib/WikiCallback.php 2014-12-02 12:51:39 UTC (rev 9399) +++ trunk/lib/WikiCallback.php 2014-12-02 12:55:31 UTC (rev 9400) @@ -15,8 +15,6 @@ /** * Convert from Pear-style callback specification to a WikiCallback. * - * This is a static member function. - * * @param $pearCb mixed * For a global function callback, $pearCb should be a string containing * the name of the function. @@ -25,7 +23,7 @@ * element should be a string containing the name of the method to be invoked. * @return object Returns the appropriate subclass of WikiCallback. */ - public function callback($pearCb) + static public function callback($pearCb) { if (is_string($pearCb)) return new WikiFunctionCb($pearCb); Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2014-12-02 12:51:39 UTC (rev 9399) +++ trunk/lib/WikiDB.php 2014-12-02 12:55:31 UTC (rev 9400) @@ -43,9 +43,8 @@ /** * Open a WikiDB database. * - * This is a static member function. This function inspects its - * arguments to determine the proper subclass of WikiDB to - * instantiate, and then it instantiates it. + * This function inspects its arguments to determine the proper + * subclass of WikiDB to instantiate, and then it instantiates it. * * @param array $dbparams Database configuration parameters (hash). * Some pertinent parameters are: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |