Transaction Engine 3 Application Programming Interface
[ class tree: Transaction Engine 3 Application Programming Interface ] [ index: Transaction Engine 3 Application Programming Interface ] [ all elements ]

Class: tNG_UserLoggedIn

Source Location: /tNG3/triggers/tNG_UserLoggedIn.class.php

Class Overview


handle the show if user log in (with proper levels) behavior;


Author(s):

Variables

Methods



Class Details

[line 9]
handle the show if user log in (with proper levels) behavior;



Tags:

access:  public


[ Top ]


Class Variables

$connection =

[line 21]

connection



Tags:

access:  public

Type:   object connection


[ Top ]

$levels = array()

[line 15]

possible level values



Tags:

access:  public

Type:   array


[ Top ]



Class Methods


constructor tNG_UserLoggedIn [line 27]

tNG_UserLoggedIn tNG_UserLoggedIn( object connection &$connection)

Constructor. set the connection



Tags:

access:  public


Parameters:

object connection   &$connection  

[ Top ]

method addLevel [line 35]

void addLevel( string $level)

setter. add to levels array an entry



Tags:

access:  public


Parameters:

string   $level  

[ Top ]

method Execute [line 45]

boolean Execute( )

Main method of the class.

If the user is not log in, call tNG_cookieLogin which will try to autologin based on the cookies; verify if the user is logged in and have the proper levels;




Tags:

return:  true if the user has the rights and is loggedin;
access:  public


[ Top ]



Documentation generated on Tue, 6 Dec 2005 15:11:55 +0200 by phpDocumentor 1.3.0RC3