Public Method Details |
sess_manager |
public void sess_manager( [ array $arr_setup ] )
|
|
Constructor
Setup state variable containers, if they are passed and initialise the PHP4 session
|
Parameter |
|
array |
$arr_setup |
= >>array()<< |
|
|
|
Returns |
void |
|
add_sess_setup |
public void add_sess_setup( array $arr_setup )
|
|
Add state setup
Adds state variable setup to the current setup.This can be used to check and add from different classes that need their own variables.
|
Parameter |
|
|
Returns |
void |
|
set_sid |
public void set_sid( string $sid )
|
|
Sets the Session Identifier
|
Parameter |
|
|
Returns |
void |
See Also |
$sess_identifier |
|
get_sid |
public string get_sid( )
|
|
Returns the Session Identifier
|
Returns |
string Session identifier |
See Also |
$sess_identifier |
|
set_selffn |
public void set_selffn( string $selffn )
|
|
Sets the self filename
|
Parameter |
|
|
Returns |
void |
See Also |
$selffn |
|
set_type |
public void set_type( string $lname, string $ltype, [ string $ldbname, string $ltablename, string $lcolname ] )
|
|
Sets up one statedef
|
Parameter |
|
|
|
string |
$ltype |
|
|
. Only GET is used at the moment |
|
|
string |
$ldbname |
= >>""<< |
|
. Deprecated |
|
|
string |
$ltablename |
= >>""<< |
|
. Deprecated |
|
|
string |
$lcolname |
= >>""<< |
|
. Deprecated |
|
Returns |
void |
See Also |
$statedef |
|
alter_value |
public void alter_value( string $lname, string $lvalue )
|
|
Sets the permament value of a state var
|
Parameter |
|
string |
$lname |
|
|
name of state variable |
|
|
|
Returns |
void |
See Also |
$fixedstate |
|
set_value |
public void set_value( string $lname, string $lvalue )
|
|
Sets the temporary value of a state var
This value will be set until a URl is build.
|
Parameter |
|
string |
$lname |
|
|
name of state variable |
|
|
|
Returns |
void |
See Also |
$fixedstate |
|
set_values_to_empty |
public void set_values_to_empty( array $arrval )
|
|
Sets a set of state vars temporarily to the empty string
This function is merely used for convenience
|
Parameter |
|
array |
$arrval |
|
|
names of the state variables |
|
Returns |
void |
See Also |
$fixedstate |
|
un_set |
public mixed un_set( string $lname )
|
|
Unsets the permament value of a state var
|
Parameter |
|
string |
$lname |
|
|
name of the var |
|
Returns |
mixed value of the state var |
See Also |
$fixedstate |
|
get_value |
public mixed get_value( string $lname )
|
|
Get Value of state var
|
Parameter |
|
string |
$lname |
|
|
name of state var |
|
Returns |
mixed value of state var |
See Also |
$fixedstate |
|
assemble |
public string assemble( [ string $lhref ] )
|
|
Build an URL from the state vars.
Assemble will on call use all defined state vars and build a URL string from them.URL parameters will be named as the state var is named. If the variable currentlycontains an object or array, it will be serialized and preceded with the string "SR".
If $lhref is set, it will be used as the file to link to. The function also preserves GETparameters which are part of the URL passed with $lhref as well as relative links in the URL.If $lhref is not set, assemble() will use $selffn
|
Parameter |
|
string |
$lhref |
= >>""<< |
|
URL to build the link to. |
|
Returns |
string resulting URL |
See Also |
$selffn |
|
get |
public void get( )
|
|
Reads the incoming URL
Reads the URL and decodes all URL paramters which are defined in the state vardefinitions. The function does basically the reverse function for assemble
|
Returns |
void |
See Also |
$stateval |
|
session_start_logged_in |
public void session_start_logged_in( string $userdata )
|
|
Saves parameters for a login session
Saves data for login time to the SESSION array and adds the Session identifier to thestate vars. Also saves userdata to the SESSION array.
|
Parameter |
|
string |
$userdata |
|
|
data to save |
|
Returns |
void |
|
session_logout |
public void session_logout( )
|
|
Logs out, deletes the session and cleans up the data
|
Returns |
void |
|
session_is_logged_in |
public integer session_is_logged_in( )
|
|
Check if login session is still valid and make it current
Checks, if the login session is still valid, depending on time saved inthe session vars and set the time to a current value.
|
Returns |
integer 1 if still valid |
|