blueshoes php application framework and cms            core_auth
[ class tree: core_auth ] [ index: core_auth ] [ all elements ]

Class: Bs_CugArray

Source Location: /core/auth/cug/Bs_CugArray.class.php

Class Overview

Bs_Object
   |
   --Bs_Cug
      |
      --Bs_CugArray

Cug Class using an array. extended from Bs_Cug, look there too.


Author(s):

Version:

  • 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:37 $

Copyright:

  • blueshoes.org

Methods


Inherited Variables

Inherited Methods

Class: Bs_Cug

Bs_Cug::Bs_Cug()
Constructor.
Bs_Cug::createPassword()
creates a new pronounceable password and returns it.
Bs_Cug::getLoginForm()
returns the login form as html code.
Bs_Cug::letMeIn()
tells if the session is registered, the user is logged in.
Bs_Cug::loadLoginForm()
loads a default login form if no login form has been assigned before.
Bs_Cug::loadRecoverPasswordByUsernameForm()
loads a default "recover password by username" form.
Bs_Cug::logout()
logs out the user from this cug, does *not* kill the session cause it might be needed for other things.
Bs_Cug::looksLikeHack()
let's see if this failed attempt looks like a hack.
Bs_Cug::redirect()
!!!deprecated!!! redirects to the specified page.
Bs_Cug::registerValidator()
registers a global validator function (or object method) that needs to be passed in order to successfully pass the "validate login" checks.
Bs_Cug::treatLoginForm()
treats the login form.
Bs_Cug::treatRecoverPasswordByUsernameForm()
treats the "recover password by username" form.
Bs_Cug::_logAttempt()
overwrite this method.
Bs_Cug::_validateLogin()
developer: if you subclass then overwrite this method, and make sure this gets called after you validated what you can. here we'll see if there are registered validators to call, and do the work. on the first error we stop and return.

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 27]
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




Tags:

pattern:  singleton: (pseudostatic)
access:  public
version:  4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:37 $
copyright:  blueshoes.org
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Methods


constructor Bs_CugArray [line 65]

Bs_CugArray Bs_CugArray( string $cugName, array $userArray)

Constructor.



Parameters:

string   $cugName  
array   $userArray   (see var $_userArray)

[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:08:23 +0100 by phpDocumentor 1.2.3