diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-10-19 01:44:06 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-10-19 01:44:06 -0700 |
commit | 8a2fc4c5bacdffd2681947fb2bce728dc50ac453 (patch) | |
tree | 9afeaac035a9f517b91fe27a5b00eaf7539369bd /inc/search.php | |
parent | 944ca9f03f5f1d38636ece981ebebfa4809384cd (diff) | |
parent | f2fb3528e17e5d79660ee1a9c26319eb8edb1246 (diff) | |
download | rpg-8a2fc4c5bacdffd2681947fb2bce728dc50ac453.tar.gz rpg-8a2fc4c5bacdffd2681947fb2bce728dc50ac453.tar.bz2 |
Merge pull request #382 from splitbrain/visibilityPHPDocs
Visibility php docs
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/inc/search.php b/inc/search.php index 884aa7b23..cd36feeab 100644 --- a/inc/search.php +++ b/inc/search.php @@ -9,14 +9,15 @@ 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 * - * @param array ref $data The results of the search are stored here + * @param array &$data The results of the search are stored here * @param string $base Where to start the search * @param callback $func Callback (function name or array with object,method) + * @param array $opts option array will be given to the Callback * @param string $dir Current directory beyond $base * @param int $lvl Recursion Level * @param mixed $sort 'natural' to use natural order sorting (default); 'date' to sort by filemtime; leave empty to skip sorting. @@ -68,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 * @@ -334,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){ |