From: <var...@us...> - 2014-09-18 12:50:10
|
Revision: 9087 http://sourceforge.net/p/phpwiki/code/9087 Author: vargenau Date: 2014-09-18 12:50:01 +0000 (Thu, 18 Sep 2014) Log Message: ----------- Make functions static Modified Paths: -------------- trunk/lib/PageList.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2014-09-18 08:28:23 UTC (rev 9086) +++ trunk/lib/PageList.php 2014-09-18 12:50:01 UTC (rev 9087) @@ -1124,7 +1124,7 @@ } // TODO: optimize getTotal => store in count - function allPagesByAuthor($wildcard, $include_empty = false, $sortby = '', + static function allPagesByAuthor($wildcard, $include_empty = false, $sortby = '', $limit = '', $exclude = '') { $dbi = $GLOBALS['request']->getDbh(); @@ -1151,7 +1151,7 @@ return $allPages; } - function allPagesByOwner($wildcard, $include_empty = false, $sortby = '', + static function allPagesByOwner($wildcard, $include_empty = false, $sortby = '', $limit = '', $exclude = '') { $dbi = $GLOBALS['request']->getDbh(); @@ -1177,7 +1177,7 @@ return $allPages; } - function allPagesByCreator($wildcard, $include_empty = false, $sortby = '', + static function allPagesByCreator($wildcard, $include_empty = false, $sortby = '', $limit = '', $exclude = '') { $dbi = $GLOBALS['request']->getDbh(); @@ -1204,7 +1204,7 @@ } // UserPages are pages NOT owned by ADMIN_USER - function allUserPages($include_empty = false, $sortby = '', + static function allUserPages($include_empty = false, $sortby = '', $limit = '', $exclude = '') { $dbi = $GLOBALS['request']->getDbh(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |