summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2013-10-15 15:04:10 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2013-10-15 15:04:10 +0200
commitce4301e3e16dc98ad647b0cde0643072f82aba48 (patch)
treef7507b71d00f6a3397d8760ceba3887038812f2d /inc/search.php
parent24998b31d03e0e30ec8d3ffa477e4580f33c9a44 (diff)
downloadrpg-ce4301e3e16dc98ad647b0cde0643072f82aba48.tar.gz
rpg-ce4301e3e16dc98ad647b0cde0643072f82aba48.tar.bz2
inc/search.php phpdocs
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php23
1 files changed, 16 insertions, 7 deletions
diff --git a/inc/search.php b/inc/search.php
index d3049bf92..cd36feeab 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -9,7 +9,7 @@
if(!defined('DOKU_INC')) die('meh.');
/**
- * recurse direcory
+ * Recurse directory
*
* This function recurses into a given base directory
* and calls the supplied function for each file and directory
@@ -69,12 +69,12 @@ function search(&$data,$base,$func,$opts,$dir='',$lvl=1,$sort='natural'){
* decide if this directory should be traversed (true) or not (false)
* The function has to accept the following parameters:
*
- * &$data - Reference to the result data structure
- * $base - Base usually $conf['datadir']
- * $file - current file or directory relative to $base
- * $type - Type either 'd' for directory or 'f' for file
- * $lvl - Current recursion depht
- * $opts - option array as given to search()
+ * array &$data - Reference to the result data structure
+ * string $base - Base usually $conf['datadir']
+ * string $file - current file or directory relative to $base
+ * string $type - Type either 'd' for directory or 'f' for file
+ * int $lvl - Current recursion depht
+ * array $opts - option array as given to search()
*
* return values for files are ignored
*
@@ -335,6 +335,15 @@ function pathID($path,$keeptxt=false){
* showhidden bool show hidden files too
* firsthead bool return first heading for pages
*
+ * @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 if this directory should be traversed (true) or not (false)
+ * return value is ignored for files
+ *
* @author Andreas Gohr <gohr@cosmocode.de>
*/
function search_universal(&$data,$base,$file,$type,$lvl,$opts){