|
|
|
File: C:/usr/local/lib/php/blueshoes-4.2/core/auth/cug/Bs_CugArray.class.php
BlueShoes Application Framework - auth/cug
Bs_CugArray
Bs_Object | +-- Bs_Cug | +-- Bs_CugArray
Cug Class using an array. extended from Bs_Cug, look there too.
|
public class Bs_CugArray extends Bs_Cug
Cug Class using an array. extended from Bs_Cug, look there too.
this is a subclass of Bs_Cug and customized for the use with an array.your users are organized in an array. pass it to this class in the constructor.dependencies: Bs_Cug
| Authors | |
| Version | 4.0.$id$ |
| Copyright | blueshoes.org |
|
| |
|
Methods inherited from Bs_Cug |
| bs_cug, letmein, logout, getloginform, treatloginform, redirect, _validatelogindata, lookslikehack, _logattempt, _preparelogdata, _hackalert, _timeoutonloginfailure, _loadloginform |
|
Methods inherited from Bs_Object |
| isex, isexception, tostring, tohtml, persist, unpersist, bs_object, bbsetoutput, bbawake, bbisawake, bbxmsg, bbxfunctionstart, bbxfunctionend, bbxecho, bbxvar, bbxvardump, bbforcetrace, bbbufferstart, bbbufferget, bbbufferendflush, bbbufferendclean |
|
|
|
Private Method Summary |
| bool |
_validateLogin()validates the login.Warning: documentation is missing. |
|
Fields inherited from Bs_Cug |
| $_app, $form, $bssession, $_postvars, $_cugname, $redirectpage, $formtarget, $language, $maxnumattempts, $checkforhack, $actiononhack, $logattempts, $checkcasesensitive, $userfieldnames, $errormsg |
|
|
|
|
|
Public Method Details |
Bs_CugArray |
|
public void Bs_CugArray( string $cugName, array $userArray )
|
| |
Constructor.
|
| Parameter |
|
|
|
| array |
$userArray |
|
|
(see var $_userArray) |
|
| Returns |
void |
|
|
Private Method Details |
_validateLogin |
|
private bool _validateLogin( )
|
| |
validates the login.
returns boolean that tells if login was ok. sets $this->errorMsg.
Warning: documentation is missing.
|
| Returns |
bool (see above) |
|
|
Private Field Details |
$_userArray |
|
private array $_userArray
>><<
user data
it's a vector holding hashes.the structure of the hash needs to have the following keys:'user' (string)'pass' (string)it *may* have the following 'lifecycle' keys'isActive' (bool (TRUE/FALE) or int(1/0) (numericthat evaluates to bool))'startDatetime' (eg 2002-12-31, empty = already)'endDatetime' (eg 2002-12-31, empty = never)if all the lifecycle fields are there, they will be used. note that times are writtenin gmt, not in any local or server time.example:$array = array(array('user'=>'tom', 'pass'=>'jones', 'isActive'=>1, 'startDatetime'=>'', 'endDatetime'=>'31.12.2004'),array('user'=>'alanis', 'pass'=>'morisette', 'isActive'=>1, 'startDatetime'=>'', 'endDatetime'=>''),);
|
|
|
Private Constant Details |
BS_CUGARRAU_VERSION
define( BS_CUGARRAU_VERSION, >>4.0.$x$<< )
Case: default: case sensitive
|
|
|
|
|
|
| PHPDoc 1.0beta |