cvs: pear /LiveUser/Auth XML.php

From: Date: Mon, 07 Feb 2005 11:44:48 +0000
Subject: cvs: pear /LiveUser/Auth XML.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29167@lists.php.net to get a copy of this message
lsmith Mon Feb 7 06:44:48 2005 EDT Modified files: /pear/LiveUser/Auth XML.php Log: - added authTableCols default values since the XML container requires different field aliases than other containers http://cvs.php.net/diff.php/pear/LiveUser/Auth/XML.php?r1=1.8&r2=1.9&ty=u Index: pear/LiveUser/Auth/XML.php diff -u pear/LiveUser/Auth/XML.php:1.8 pear/LiveUser/Auth/XML.php:1.9 --- pear/LiveUser/Auth/XML.php:1.8 Mon Feb 7 06:35:51 2005 +++ pear/LiveUser/Auth/XML.php Mon Feb 7 06:44:48 2005 @@ -33,7 +33,7 @@ * This is a XML backend driver for the LiveUser class. * * @author Björn Kraus <krausbn@php.net> - * @version $Id: XML.php,v 1.8 2005/02/07 11:35:51 lsmith Exp $ + * @version $Id: XML.php,v 1.9 2005/02/07 11:44:48 lsmith Exp $ * @package LiveUser * @category authentication */ @@ -64,6 +64,30 @@ */ var $userObj = null; + /** + * Columns of the auth table. + * Associative array with the names of the auth table columns. + * The 'auth_user_id', 'handle' and 'passwd' fields have to be set. + * 'lastlogin' and 'is_active' are optional. + * It doesn't make sense to set only one of the time columns without the + * other. + * + * The type attribute is only useful when using MDB or CAPTCHA. + * + * @access public + * @var array + */ + var $authTableCols = array( + 'required' => array( + 'auth_user_id' => array('name' => 'userId', 'type' => 'text'), + 'handle' => array('name' => 'handle', 'type' => 'text'), + 'passwd' => array('name' => 'password', 'type' => 'text'), + ), + 'optional' => array( + 'lastlogin' => array('name' => 'lastLogin', 'type' => 'timestamp'), + 'is_active' => array('name' => 'isActive', 'type' => 'boolean') + ) + ); function init(&$connectOptions) { if (is_array($connectOptions)) {

« previous php.pear.cvs (#29167) next »