summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-07-15 16:01:11 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2014-07-15 16:01:11 +0200
commit80679bafa1a5ed611bafc603afd0ae7b2b5954a7 (patch)
tree975ae8577e1003c375beb7e295f1fa3b8fd40817 /inc/html.php
parent18815c2becc1029876f5148a1cecc7ac6176a540 (diff)
downloadrpg-80679bafa1a5ed611bafc603afd0ae7b2b5954a7.tar.gz
rpg-80679bafa1a5ed611bafc603afd0ae7b2b5954a7.tar.bz2
add PHPDocs in html.php
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php
index 1db181c49..bda6fb398 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -922,6 +922,14 @@ function html_li_default($item){
* a member of an object.
*
* @author Andreas Gohr <andi@splitbrain.org>
+ *
+ * @param array $data array with item arrays
+ * @param string $class class of ul wrapper
+ * @param callable $func callback to print an list item
+ * @param string $lifunc callback to the opening li tag
+ * @param bool $forcewrapper Trigger building a wrapper ul if the first level is
+ 0 (we have a root object) or 1 (just the root content)
+ * @return string html of an unordered list
*/
function html_buildlist($data,$class,$func,$lifunc='html_li_default',$forcewrapper=false){
if (count($data) === 0) {