CodeIgniter
[ class tree: CodeIgniter ] [ index: CodeIgniter ] [ all elements ]

Class: Myauth

Source Location: /libraries/Myauth.php

Class Overview


Myauth Class


Author(s):

Copyright:

  • Zdenek Kalina

Variables

Methods



Class Details

[line 14]
Myauth Class

Myauth is derived form Rsauth from SeViR http://codeigniter.com/forums/viewthread/74470/




Tags:

author:  Zdenek Kalina <kalinz1@fel.cvut.cz>
copyright:  Zdenek Kalina


[ Top ]


Class Variables

$app =

[line 15]


Type:   mixed


[ Top ]

$id_ugroup =  false

[line 19]


Type:   mixed


[ Top ]

$id_uroles = array()

[line 20]


Type:   mixed


[ Top ]

$id_user =  false

[line 18]


Type:   mixed


[ Top ]

$islogged =  false

[line 17]


Type:   mixed


[ Top ]

$username =  false

[line 16]


Type:   mixed


[ Top ]



Class Methods


constructor Myauth [line 25]

Myauth Myauth( )

Constructor



[ Top ]

method check [line 44]

boolean check( )

Checks if user is loginIn



Tags:

access:  public


[ Top ]

method checklogin [line 185]

boolean checklogin( string $username, string $password, [boolean $ismd5 = false])

Check username and password in the database



Parameters:

string   $username  
string   $password  
boolean   $ismd5   if password is md5 hash

[ Top ]

method checkMyauthForm [line 78]

boolean checkMyauthForm( )

Control login form for filling all parts Return true when filled, false if not



Tags:

access:  public


[ Top ]

method getAllAboutUser [line 54]

void getAllAboutUser( )

Get info about actual user



Tags:

access:  public


[ Top ]

method getUser [line 100]

string getUser( )

Get the username of the logged User



Tags:

access:  public


[ Top ]

method getUserId [line 111]

integer getUserId( )

Get user id of the logged User



Tags:

access:  public


[ Top ]

method isAdmin [line 122]

boolean isAdmin( )

Check if user is administrator



Tags:

access:  public


[ Top ]

method isSuperAdmin [line 133]

boolean isSuperAdmin( )

Check if user is super administrator



Tags:

access:  public


[ Top ]

method login [line 158]

boolean login( )

Try to log user



Tags:

return:  true if user is already logged or if login process done well
access:  public


[ Top ]

method logout [line 143]

void logout( )

Logout, reset all perms, clear loginIn data



Tags:

access:  public


[ Top ]


Documentation generated on Sun, 11 Jan 2009 04:21:10 +0100 by phpDocumentor 1.4.1