cvs: pear /File_Passwd/Passwd Unix.php
| From: | Michael Wallner | Date: | Tue, 23 Sep 2003 17:37:46 +0000 |
| Subject: | cvs: pear /File_Passwd/Passwd Unix.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13028@lists.php.net to get a copy of this message | ||
mike Tue Sep 23 13:37:46 2003 EDT
Modified files:
/pear/File_Passwd/Passwd Unix.php
Log:
updated some inline docs
Index: pear/File_Passwd/Passwd/Unix.php
diff -u pear/File_Passwd/Passwd/Unix.php:1.2 pear/File_Passwd/Passwd/Unix.php:1.3
--- pear/File_Passwd/Passwd/Unix.php:1.2 Tue Sep 23 12:08:18 2003
+++ pear/File_Passwd/Passwd/Unix.php Tue Sep 23 13:37:45 2003
@@ -15,7 +15,7 @@
// | Author: Michael Wallner <mike@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Unix.php,v 1.2 2003/09/23 16:08:18 mike Exp $
+// $Id: Unix.php,v 1.3 2003/09/23 17:37:45 mike Exp $
/**
* Manipulate standard Unix passwd files.
@@ -65,7 +65,7 @@
*
* @author Michael Wallner <mike@php.net>
* @package File_Passwd
-* @version $Revision: 1.2 $
+* @version $Revision: 1.3 $
* @access public
*/
class File_Passwd_Unix extends File_Passwd_Common {
@@ -199,10 +199,13 @@
*
* Returns a PEAR_Error if supplied encryption mode is not supported.
*
- * @throws PEAR_Error
- * @access public
- * @return mixed true on succes or PEAR_Error
- * @param string $mode encryption mode to use; either md5 or des
+ * @see setMode()
+ * @see listModes()
+ *
+ * @throws PEAR_Error
+ * @access public
+ * @return mixed true on succes or PEAR_Error
+ * @param string $mode encryption mode to use; either md5 or des
*/
function setMode($mode) {
$mode = strToLower($mode);
@@ -225,8 +228,11 @@
* + des
* </pre>
*
- * @access public
- * @return array
+ * @see setMode()
+ * @see getMode()
+ *
+ * @access public
+ * @return array
*/
function listModes() {
return $this->_modes;
@@ -235,8 +241,11 @@
/**
* Get actual encryption mode
*
- * @access public
- * @return string
+ * @see listModes()
+ * @see setMode()
+ *
+ * @access public
+ * @return string
*/
function getMode(){
return $this->_mode;
@@ -247,7 +256,7 @@
*
* Default Unix passwd files look like:
* <pre>
- * user:password:user_id:group_id:home_dir:shell
+ * user:password:user_id:group_id:gecos:home_dir:shell
* </pre>
*
* The default 'name map' for properties except user and password looks like:
@@ -260,11 +269,14 @@
* If you want to change the naming of the standard map use
* File_Passwd_Unix::setMap(array()).
*
- * @access public
- * @return boolean always true if you set a value (true/false) OR
+ * @see setMap()
+ * @see getMap()
+ *
+ * @access public
+ * @return boolean always true if you set a value (true/false) OR
* the actual value if called without param
*
- * @param boolean $bool whether to use the 'name map' or not
+ * @param boolean $bool whether to use the 'name map' or not
*/
function useMap($bool = null){
if (is_null($bool)) {
@@ -281,9 +293,12 @@
*
* Returns a PEAR_Error if <var>$map</var> was not of type array.
*
- * @throws PEAR_Error
- * @access public
- * @return mixed true on success or PEAR_Error
+ * @see getMap()
+ * @see useMap()
+ *
+ * @throws PEAR_Error
+ * @access public
+ * @return mixed true on success or PEAR_Error
*/
function setMap($map = array()){
if (!is_array($map)) {
@@ -299,6 +314,9 @@
/**
* Get the 'name map' which is used for the extra properties of the user
*
+ * @see setMap()
+ * @see useMap()
+ *
* @access public
* @return array
*/
@@ -422,11 +440,14 @@
* o user doesn't exist
* o any property contains a colon (':')
*
- * @throws PEAR_Error
- * @access public
- * @return mixed true on success or PEAR_Error
- * @param string $user the user to modify
- * @param array $properties an associative array of properties to modify
+ * @see changePasswd()
+ *
+ * @throws PEAR_Error
+ * @access public
+ * @return mixed true on success or PEAR_Error
+ * @param string $user the user to modify
+ * @param array $properties an associative array of
+ * properties to modify
*/
function modUser($user, $properties = array()){
if (!$this->userExists($user)) {