Class Login

Description

Loging class for defining admin-type users

Located in /mod_login.php (line 12)

Base
   |
   --Login
Variable Summary
mixed $auth
mixed $failed
mixed $passwd
mixed $user
mixed $username
mixed $user_type
Method Summary
Login __construct ()
void authorize (string $un, string $pw)
bool authorized ()
void get_user ()
void set_auth (mixed $bool)
void set_user_type (mixed $type)
void start ()
void view ()
Variables
mixed $auth (line 13)
  • access: protected
mixed $failed (line 14)
  • access: protected
mixed $passwd (line 23)
  • access: protected
mixed $signal_login (line 18)
  • access: protected
mixed $signal_passwd (line 19)
  • access: protected
mixed $signal_username (line 20)
  • access: protected
mixed $user (line 25)
  • access: protected
mixed $username (line 22)
  • access: protected
mixed $user_type (line 16)
  • access: protected
Methods
Constructor __construct (line 30)

Initializes attributes

  • access: public
Login __construct ()
authorize (line 113)

Handels authorization to database

  • access: protected
void authorize (string $un, string $pw)
  • string $un: Username
  • string $pw: Password
authorized (line 90)
  • return: authorized If login has been success returns true, else false.
  • access: public
bool authorized ()
get_user (line 130)

Returns object of logged user

  • access: public
void get_user ()
set_auth (line 94)
  • access: protected
void set_auth (mixed $bool)
set_user_type (line 99)
  • access: protected
void set_user_type (mixed $type)
start (line 42)

Handles signals

  • access: public
void start ()
view (line 51)

Shows login-form or wellcome message depending on authorization

  • access: public
void view ()
writeout_failed_message (line 83)

Prints failed message

  • access: protected
void writeout_failed_message ()
writeout_login_form (line 59)

Prints login-form

  • access: protected
void writeout_login_form ()
writeout_succeed (line 76)

Prints succeed-message

  • access: protected
void writeout_succeed ()

Inherited Methods

Inherited From Base

Base::make_query()

Documentation generated on Mon, 16 May 2005 16:11:53 +0300 by phpDocumentor 1.3.0RC3