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_RestrictAccess

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

Class Overview


class to handle Restrict access to page


Author(s):

Variables

Methods



Class Details

[line 11]
class to handle Restrict access to page



Tags:

access:  public


[ Top ]


Class Variables

$connection =

[line 29]

connection reference



Tags:

access:  public

Type:   object


[ Top ]

$levels = array()

[line 23]

possible level values



Tags:

access:  public

Type:   array


[ Top ]

$relPath =  ""

[line 17]

relativ path from the site root



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


constructor tNG_RestrictAccess [line 37]

tNG_RestrictAccess tNG_RestrictAccess( object connection &$connection, string $relPath)

Constructor. set the connection/relative path



Tags:

access:  public


Parameters:

object connection   &$connection  
string   $relPath   relative path

[ Top ]

method addLevel [line 46]

void addLevel( string $level)

setter. add to levels array an entry



Tags:

access:  public


Parameters:

string   $level  

[ Top ]

method Execute [line 54]

mix Execute( )

Main method of the class. grant the access to the page or make the redirect page setted in control panel



Tags:

return:  null or error object
access:  public


[ Top ]



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