From: <var...@us...> - 2015-01-14 16:37:49
|
Revision: 9478 http://sourceforge.net/p/phpwiki/code/9478 Author: vargenau Date: 2015-01-14 16:37:46 +0000 (Wed, 14 Jan 2015) Log Message: ----------- functions most_popular and most_recent are public Modified Paths: -------------- trunk/lib/WikiDB/backend/ADODB.php trunk/lib/WikiDB/backend/PDO.php trunk/lib/WikiDB/backend/PearDB.php trunk/lib/WikiDB/backend/PearDB_ffpgsql.php trunk/lib/WikiDB/backend/cvs.php trunk/lib/WikiDB/backend.php Modified: trunk/lib/WikiDB/backend/ADODB.php =================================================================== --- trunk/lib/WikiDB/backend/ADODB.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/ADODB.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -974,7 +974,7 @@ /** * Find highest or lowest hit counts. */ - function most_popular($limit = 20, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { $dbh = &$this->_dbh; extract($this->_table_names); @@ -1010,7 +1010,7 @@ /** * Find recent changes. */ - function most_recent($params) + public function most_recent($params) { $limit = 0; $since = 0; Modified: trunk/lib/WikiDB/backend/PDO.php =================================================================== --- trunk/lib/WikiDB/backend/PDO.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/PDO.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -948,7 +948,7 @@ /** * Find highest or lowest hit counts. */ - function most_popular($limit = 20, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { $dbh = &$this->_dbh; extract($this->_table_names); @@ -984,7 +984,7 @@ /** * Find recent changes. */ - function most_recent($params) + public function most_recent($params) { $limit = 0; $since = 0; Modified: trunk/lib/WikiDB/backend/PearDB.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/PearDB.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -798,7 +798,7 @@ /** * Find highest or lowest hit counts. */ - function most_popular($limit = 20, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { $dbh = &$this->_dbh; extract($this->_table_names); @@ -836,7 +836,7 @@ /** * Find recent changes. */ - function most_recent($params) + public function most_recent($params) { $limit = 0; $since = 0; Modified: trunk/lib/WikiDB/backend/PearDB_ffpgsql.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB_ffpgsql.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/PearDB_ffpgsql.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -385,7 +385,7 @@ return new WikiDB_backend_PearDB_iter($this, $result, $options); } - function most_popular($limit = 20, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { $dbh = &$this->_dbh; extract($this->_table_names); @@ -424,7 +424,7 @@ return new WikiDB_backend_PearDB_iter($this, $result); } - function most_recent($params) + public function most_recent($params) { $limit = 0; $since = 0; Modified: trunk/lib/WikiDB/backend/cvs.php =================================================================== --- trunk/lib/WikiDB/backend/cvs.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/cvs.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -432,7 +432,7 @@ } } - function most_popular($limit, $sortby = '') + public function most_popular($limit = 20, $sortby = '') { // TODO: needs to be tested ... $mp = $this->_getMostPopular(); @@ -455,7 +455,7 @@ * This only accepts the 'since' and 'limit' attributes, everything * else is ignored. */ - function most_recent($params) + public function most_recent($params) { // TODO: needs to be tested ... // most recent are those pages with the highest time value ... Modified: trunk/lib/WikiDB/backend.php =================================================================== --- trunk/lib/WikiDB/backend.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -388,7 +388,7 @@ * @param string $sortby * @return object A WikiDB_backend_iterator. */ - protected function most_popular($limit, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { // This is method fetches all pages, then // sorts them by hit count. @@ -409,7 +409,7 @@ * @return object A WikiDB_backend_iterator. * @see WikiDB::mostRecent */ - protected function most_recent($params) + public function most_recent($params) { // This method is very inefficient and searches through // all pages for the most recent changes. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |