cvs: pear /LiveUser_Admin/Perm Simple.php
| From: | Lukas Smith | Date: | Mon, 06 Mar 2006 18:16:49 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Perm Simple.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38951@lists.php.net to get a copy of this message | ||
lsmith Mon Mar 6 18:16:49 2006 UTC
Modified files:
/pear/LiveUser_Admin/Perm Simple.php
Log:
- phpdoc fix in outputRightsConstants() (bug #7037)
http://cvs.php.net/viewcvs.cgi/pear/LiveUser_Admin/Perm/Simple.php?r1=1.77&r2=1.78&diff_format=u
Index: pear/LiveUser_Admin/Perm/Simple.php
diff -u pear/LiveUser_Admin/Perm/Simple.php:1.77 pear/LiveUser_Admin/Perm/Simple.php:1.78
--- pear/LiveUser_Admin/Perm/Simple.php:1.77 Wed Mar 1 12:10:29 2006
+++ pear/LiveUser_Admin/Perm/Simple.php Mon Mar 6 18:16:49 2006
@@ -57,7 +57,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: Simple.php,v 1.77 2006/03/01 12:10:29 lsmith Exp $
+ * @version CVS: $Id: Simple.php,v 1.78 2006/03/06 18:16:49 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -833,9 +833,8 @@
/**
* Generate the constants to a file or define them directly.
*
- * $type can be either 'file' or 'php'. File will write the constant
- * in the given file, replacing/adding constants as needed. Php will
- * call define() function to actually define the constants.
+ * $type can be either 'constant' or 'array'. Constant will result in
+ * defining constants while array results in defining an array.
*
* $options can contain
* 'prefix' => 'prefix_goes_here',
@@ -844,14 +843,21 @@
* 'naming' => LIVEUSER_SECTION_RIGHT for PREFIX_RIGHTNAME <- DEFAULT
* LIVEUSER_SECTION_AREA for PREFIX_AREANAME_RIGHTNAME
* LIVEUSER_SECTION_APPLICATION for PREFIX_APPLICATIONNAME_AREANAME_RIGHTNAME
- * 'filename' => if $mode is file you must give the full path for the
+ * 'filename' => if $mode is 'file' you must give the full path for
the
* output file
+ * 'varname' => if $mode is 'file' and $type is 'array'
you must give
+ * the name of the variable to define
*
- * If no prefix is given it will not be used to generate the constants
+ * If no prefix is given it will not be used to generate the constants/arrays
*
- * @param string type of output (constant or array)
+ * $mode can either be 'file' or 'direct' and will determine of the
+ * constants/arrays will be written to a file, or returned/defined.
+ * returned as an array when $type is set to 'array' and defined when $type
+ * is set to 'constant'
+ *
+ * @param string type of output ('constant' or 'array')
* @param array options for constants generation
- * @param string output mode desired (file or direct)
+ * @param string output mode desired ('file' or 'direct')
* @return bool|array depending on the type an array with the data or
* a boolean denoting success or failure
*