summaryrefslogtreecommitdiff
path: root/lib/plugins/popularity
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2013-10-14 16:44:41 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2013-10-14 16:44:41 +0200
commit36013a6f5c54847cc4a474853d502ad99ae84be6 (patch)
treec85345aa0133300eae8ae61a99102f5f887fd743 /lib/plugins/popularity
parentf119fb202b56acf8966f17b1ae4525c678b34865 (diff)
downloadrpg-36013a6f5c54847cc4a474853d502ad99ae84be6.tar.gz
rpg-36013a6f5c54847cc4a474853d502ad99ae84be6.tar.bz2
add PHPDocs to popularity plugin helper
Diffstat (limited to 'lib/plugins/popularity')
-rw-r--r--lib/plugins/popularity/helper.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/plugins/popularity/helper.php b/lib/plugins/popularity/helper.php
index 9b092f2be..eacde06d0 100644
--- a/lib/plugins/popularity/helper.php
+++ b/lib/plugins/popularity/helper.php
@@ -37,6 +37,11 @@ class helper_plugin_popularity extends Dokuwiki_Plugin {
$this->popularityLastSubmitFile = $conf['cachedir'].'/lastSubmitTime.txt';
}
+ /**
+ * Return methods of this helper
+ *
+ * @return array with methods description
+ */
function getMethods(){
$result = array();
$result[] = array(
@@ -123,6 +128,7 @@ class helper_plugin_popularity extends Dokuwiki_Plugin {
*/
function _gather(){
global $conf;
+ /** @var $auth DokuWiki_Auth_Plugin */
global $auth;
$data = array();
$phptime = ini_get('max_execution_time');
@@ -244,6 +250,17 @@ class helper_plugin_popularity extends Dokuwiki_Plugin {
return $data;
}
+ /**
+ * Callback to search and count the content of directories in DokuWiki
+ *
+ * @param array &$data Reference to the result data structure
+ * @param string $base Base usually $conf['datadir']
+ * @param string $file current file or directory relative to $base
+ * @param string $type Type either 'd' for directory or 'f' for file
+ * @param int $lvl Current recursion depht
+ * @param array $opts option array as given to search()
+ * @return bool
+ */
function _search_count(&$data,$base,$file,$type,$lvl,$opts){
// traverse
if($type == 'd'){