cvs: pear /Perm_LiveUser LoginManager.php
| From: | Arnaud Limbourg | Date: | Sun, 23 Mar 2003 19:22:41 +0000 |
| Subject: | cvs: pear /Perm_LiveUser LoginManager.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-9593@lists.php.net to get a copy of this message | ||
arnaud Sun Mar 23 14:22:41 2003 EDT
Modified files:
/pear/Perm_LiveUser LoginManager.php
Log:
* the best i came up with phpdoc, generation gives two warnings
Index: pear/Perm_LiveUser/LoginManager.php
diff -u pear/Perm_LiveUser/LoginManager.php:1.72 pear/Perm_LiveUser/LoginManager.php:1.73
--- pear/Perm_LiveUser/LoginManager.php:1.72 Sun Mar 23 13:11:45 2003
+++ pear/Perm_LiveUser/LoginManager.php Sun Mar 23 14:22:41 2003
@@ -1,31 +1,35 @@
<?php
+// LiveUser: A framework for authentication and authorization in PHP applications
+// Copyright (C) 2002-2003 Markus Wolff
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+require_once 'PEAR.php';
+
/**
- * LiveUser: A framework for authentication and authorization in PHP applications
- * Copyright (C) 2002-2003 Markus Wolff
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
+ * LiveUser is a framework designed to be flexible.
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Since it is impossible to have a
+ * "one size fits all" it takes a container
+ * approach which should enable it to
+ * be versatile.
*
* @package LiveUser
* @category authentication
*/
-/**
- * Required files
- */
-require_once 'PEAR.php';
-
/**#@+
* Error related constants definition
*/
@@ -71,7 +75,7 @@
* Bjoern Schotte, Kristian Koehntopp, Antonio Guerra
*
* @author Markus Wolff <wolff@21st.de>
- * @version $Id: LoginManager.php,v 1.72 2003/03/23 18:11:45 arnaud Exp $
+ * @version $Id: LoginManager.php,v 1.73 2003/03/23 19:22:41 arnaud Exp $
* @package LiveUser
*/
class LoginManager extends PEAR
@@ -208,19 +212,23 @@
/**
* Nested array with the auth containers that shall be queried for user information.
- * Format: array(1 => array("option1" => "value", ....))
+ * Format:
+ * <code>
+ * array(1 => array("option1" => "value", ....))
+ * </code>
* Typical options are:
- * - server: The adress of the server being queried (ie. "localhost")
- * - handle: The user name used to login for the server
- * - password: The password used to login for the server
+ * <ul>
+ * - server: The adress of the server being queried (ie. "localhost").
+ * - handle: The user name used to login for the server.
+ * - password: The password used to login for the server.
* - database: Name of the database containing user information (this is
- * usually used only by RDBMS)
- * - baseDN: Obviously, this is what you need when using an LDAP server
+ * usually used only by RDBMS).
+ * - baseDN: Obviously, this is what you need when using an LDAP server.
* - connection: Present only if an existing connection shall be used. This
* contains a reference to an already existing connection resource or object.
* - type: The container type. This option must always be present, otherwise
* the LoginManager can't include the correct container class definition.
- *
+ *</ul>
* @var array
*/
var $authContainers = array();
@@ -230,7 +238,7 @@
* backend in which the auth data resides.
* This is needed to include the
* correct backend class definition on demand.
-
+ *
* @var string
*/
var $authContainerTypeVar = 'authContainerType';
@@ -1050,8 +1058,6 @@
class LiveUser
{
/**
- * LiveUser::create()
- *
* Checks the given file and returns an object of the LoginManager.
*
* @access public
@@ -1073,14 +1079,11 @@
}
/**
- * LiveUser::errorMessage()
- *
* Return a textual error message for a LiveUser error code
*
* @access private
* @param integer $value error code
- * @return string Error message, or false if the error code was
- * not recognized.
+ * @return string Error message, or false if the error code was not recognized.
*/
function errorMessage($value)
{