From 0a673cbfaf319a962f9b2c7571ec878cdc3bfe9f Mon Sep 17 00:00:00 2001 From: seek3r Date: Mon, 12 Nov 2001 18:01:42 +0000 Subject: [PATCH] allows to look in other apps files --- doc/inlinedocparser.php | 9 +++++++-- phpgwapi/inc/class.acl.inc.php | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/inlinedocparser.php b/doc/inlinedocparser.php index 260ad64667..bd93d17600 100755 --- a/doc/inlinedocparser.php +++ b/doc/inlinedocparser.php @@ -14,13 +14,18 @@ $types = array('abstract','param','example','syntax','result','description','discussion','author','copyright','package','access'); + if(!$app) + { + $app = 'phpgwapi'; + } + if ($fn) { $files[] = $fn; } else { - $d = dir('../phpgwapi/inc/'); + $d = dir('../'.$app.'/inc/'); while ($x = $d->read()) { if (ereg('class',$x) && !ereg('#',$x) && ereg('php',$x)) @@ -36,7 +41,7 @@ { $matches = $elements = $data = array(); $string = $t = $out = $class = $xkey = $new = ''; - $file = '../phpgwapi/inc/' . $fn; + $file = '../'.$app.'/inc/' . $fn; echo '
Looking at: ' . $file . "\n"; $f = fopen($file,'r'); diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index 7ca347117c..9132465759 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -54,8 +54,8 @@ @discussion Author: Seek3r
Sets the ID for $acl->account_id. Can be used to change a current instances id as well.
Some functions are specific to this account, and others are generic.
- Syntax: int acl(int account_id)
- Example1: acl->acl(5); // 5 is the user id
+ @syntax int acl(int account_id)
+ @example1 acl->acl(5); // 5 is the user id
@param account_id int-the user id */ function acl($account_id = '')