<?xml version="1.0"?><phpdoc><class name="Bs_CugArray" extends="Bs_Cug" undoc="false" access="public" package="auth/cug"><file>C:/usr/local/lib/php/blueshoes-4.2/core/auth/cug/Bs_CugArray.class.php</file><doc><author>andrej arn &amp;lt;andrej at blueshoes dot org&amp;gt;</author><inherited src="Array"/><overriden src="Array"/><description>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</description><shortdescription>Cug Class using an array. extended from Bs_Cug, look there too.</shortdescription><version>4.0.$id$</version><copyright>blueshoes.org</copyright></doc><function name="Bs_CugArray" undoc="false" access="public"><doc><parameter name="$cugName" type="string"/><parameter name="$userArray" type="array">(see var $_userArray)</parameter><return type="void"/><description/><shortdescription>Constructor.</shortdescription></doc></function><function name="_validateLogin" undoc="true" access="private"><doc><return name="" type="bool"> (see above)</return><overriden src="Bs_Cug"/><description>returns boolean that tells if login was ok. sets $this-&amp;gt;errorMsg.</description><shortdescription>validates the login.</shortdescription></doc></function><variable name="$_userArray" access="private" type="array"><doc><description>it&amp;apos;s a vector holding hashes.the structure of the hash needs to have the following keys:&amp;apos;user&amp;apos;  (string)&amp;apos;pass&amp;apos;  (string)it *may* have the following &amp;apos;lifecycle&amp;apos; keys&amp;apos;isActive&amp;apos;       (bool (TRUE/FALE) or int(1/0) (numericthat evaluates to bool))&amp;apos;startDatetime&amp;apos;  (eg 2002-12-31, empty = already)&amp;apos;endDatetime&amp;apos;    (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(&amp;apos;user&amp;apos;=&amp;gt;&amp;apos;tom&amp;apos;,    &amp;apos;pass&amp;apos;=&amp;gt;&amp;apos;jones&amp;apos;,     &amp;apos;isActive&amp;apos;=&amp;gt;1, &amp;apos;startDatetime&amp;apos;=&amp;gt;&amp;apos;&amp;apos;, &amp;apos;endDatetime&amp;apos;=&amp;gt;&amp;apos;31.12.2004&amp;apos;),array(&amp;apos;user&amp;apos;=&amp;gt;&amp;apos;alanis&amp;apos;, &amp;apos;pass&amp;apos;=&amp;gt;&amp;apos;morisette&amp;apos;, &amp;apos;isActive&amp;apos;=&amp;gt;1, &amp;apos;startDatetime&amp;apos;=&amp;gt;&amp;apos;&amp;apos;, &amp;apos;endDatetime&amp;apos;=&amp;gt;&amp;apos;&amp;apos;),);</description><shortdescription>user data</shortdescription></doc></variable><constant name="BS_CUGARRAU_VERSION" undoc="true" access="private" case="default: case sensitive">4.0.$x$<doc></doc></constant><inherited src="Bs_Cug" type="functions"><element>bs_cug</element><element>letmein</element><element>logout</element><element>getloginform</element><element>treatloginform</element><element>redirect</element><element>_validatelogindata</element><element>lookslikehack</element><element>_logattempt</element><element>_preparelogdata</element><element>_hackalert</element><element>_timeoutonloginfailure</element><element>_loadloginform</element></inherited><inherited src="Bs_Object" type="functions"><element>isex</element><element>isexception</element><element>tostring</element><element>tohtml</element><element>persist</element><element>unpersist</element><element>bs_object</element><element>bbsetoutput</element><element>bbawake</element><element>bbisawake</element><element>bbxmsg</element><element>bbxfunctionstart</element><element>bbxfunctionend</element><element>bbxecho</element><element>bbxvar</element><element>bbxvardump</element><element>bbforcetrace</element><element>bbbufferstart</element><element>bbbufferget</element><element>bbbufferendflush</element><element>bbbufferendclean</element></inherited><inherited src="Bs_Cug" type="variables"><element>$_app</element><element>$form</element><element>$bssession</element><element>$_postvars</element><element>$_cugname</element><element>$redirectpage</element><element>$formtarget</element><element>$language</element><element>$maxnumattempts</element><element>$checkforhack</element><element>$actiononhack</element><element>$logattempts</element><element>$checkcasesensitive</element><element>$userfieldnames</element><element>$errormsg</element></inherited><inherited src="Bs_Cug" type="consts"><element>bs_cug_version</element></inherited><inherited src="Bs_Object" type="consts"><element>bs_object_version</element></inherited><path><parent>Bs_Cug</parent><parent>Bs_Object</parent></path><baseclass>Bs_Object</baseclass></class></phpdoc>