Documentation TYPO3 par Ameos

tslib_feUserAuth Class Reference

Inheritance diagram for tslib_feUserAuth:

Inheritance graph
[legend]
Collaboration diagram for tslib_feUserAuth:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 fetchGroupData ()
 getUserTSconf ()
 fetchSessionData ()
 storeSessionData ()
 getKey ($type, $key)
 setKey ($type, $key, $data)
 record_registration ($recs)
 fetchGroupData ()
 getUserTSconf ()
 fetchSessionData ()
 storeSessionData ()
 getKey ($type, $key)
 setKey ($type, $key, $data)
 record_registration ($recs)

Public Attributes

 $session_table = 'fe_sessions'
 $name = 'fe_typo_user'
 $get_name = 'ftu'
 $user_table = 'fe_users'
 $username_column = 'username'
 $userident_column = 'password'
 $userid_column = 'uid'
 $lastLogin_column = 'lastlogin'
 $enablecolumns
 $formfield_uname = 'user'
 $formfield_uident = 'pass'
 $formfield_chalvalue = 'challenge'
 $formfield_status = 'logintype'
 $security_level = ''
 $auth_include = ''
 $auth_timeout_field = 6000
 $lifetime = 0
 $sendNoCacheHeaders = 0
 $getFallBack = 1
 $hash_length = 10
 $getMethodEnabled = 1
 $usergroup_column = 'usergroup'
 $usergroup_table = 'fe_groups'
 $groupData
 $TSdataArray = array()
 $userTS = array()
 $userTSUpdated = 0
 $showHiddenRecords = 0
 $sesData = Array()
 $sesData_change = 0
 $userData_change = 0

Detailed Description

Definition at line 77 of file class.tslib_feuserauth.php.


Member Function Documentation

tslib_feUserAuth::fetchGroupData  ) 
 

Will select all fe_groups records that the current fe_user is member of - and which groups are also allowed in the current domain. It also accumulates the TSconfig for the fe_user/fe_groups in ->TSdataArray

Returns:
integer Returns the number of usergroups for the frontend users (if the internal user record exists and the usergroup field contains a value)

Definition at line 141 of file class.tslib_feuserauth.php.

References t3lib_div::intExplode().

tslib_feUserAuth::fetchGroupData  ) 
 

Will select all fe_groups records that the current fe_user is member of - and which groups are also allowed in the current domain. It also accumulates the TSconfig for the fe_user/fe_groups in ->TSdataArray

Returns:
integer Returns the number of usergroups for the frontend users (if the internal user record exists and the usergroup field contains a value)

Definition at line 141 of file class.tslib_feuserauth.php.

References t3lib_div::intExplode().

tslib_feUserAuth::fetchSessionData  ) 
 

Fetches the session data for the user (from the fe_session_data table) based on the ->id of the current user-session. The session data is restored to $this->sesData 1/100 calls will also do a garbage collection.

Returns:
void private
See also:
storeSessionData()

Definition at line 234 of file class.tslib_feuserauth.php.

tslib_feUserAuth::fetchSessionData  ) 
 

Fetches the session data for the user (from the fe_session_data table) based on the ->id of the current user-session. The session data is restored to $this->sesData 1/100 calls will also do a garbage collection.

Returns:
void private
See also:
storeSessionData()

Definition at line 234 of file class.tslib_feuserauth.php.

tslib_feUserAuth::getKey type,
key
 

Returns session data for the fe_user; Either persistent data following the fe_users uid/profile (requires login) or current-session based (not available when browse is closed, but does not require login)

Parameters:
string Session data type; Either "user" (persistent, bound to fe_users profile) or "ses" (temporary, bound to current session cookie)
string Key from the data array to return; The session data (in either case) is an array ($this->uc / $this->sesData) and this value determines which key to return the value for.
Returns:
mixed Returns whatever value there was in the array for the key, $key
See also:
setKey()

Definition at line 282 of file class.tslib_feuserauth.php.

tslib_feUserAuth::getKey type,
key
 

Returns session data for the fe_user; Either persistent data following the fe_users uid/profile (requires login) or current-session based (not available when browse is closed, but does not require login)

Parameters:
string Session data type; Either "user" (persistent, bound to fe_users profile) or "ses" (temporary, bound to current session cookie)
string Key from the data array to return; The session data (in either case) is an array ($this->uc / $this->sesData) and this value determines which key to return the value for.
Returns:
mixed Returns whatever value there was in the array for the key, $key
See also:
setKey()

Definition at line 282 of file class.tslib_feuserauth.php.

tslib_feUserAuth::getUserTSconf  ) 
 

Returns the parsed TSconfig for the fe_user First time this function is called it will parse the TSconfig and store it in $this->userTS. Subsequent requests will not re-parse the TSconfig but simply return what is already in $this->userTS

Returns:
array TSconfig array for the fe_user

Definition at line 189 of file class.tslib_feuserauth.php.

References t3lib_TSparser::checkIncludeLines_array(), and t3lib_div::makeInstance().

tslib_feUserAuth::getUserTSconf  ) 
 

Returns the parsed TSconfig for the fe_user First time this function is called it will parse the TSconfig and store it in $this->userTS. Subsequent requests will not re-parse the TSconfig but simply return what is already in $this->userTS

Returns:
array TSconfig array for the fe_user

Definition at line 189 of file class.tslib_feuserauth.php.

References t3lib_TSparser::checkIncludeLines_array(), and t3lib_div::makeInstance().

tslib_feUserAuth::record_registration recs  ) 
 

Registration of records/"shopping basket" in session data This will take the input array, $recs, and merge into the current "recs" array found in the session data. If a change in the recs storage happens (which it probably does) the function setKey() is called in order to store the array again.

Parameters:
array The data array to merge into/override the current recs values. The $recs array is constructed as [table]][uid] = scalar-value (eg. string/integer).
Returns:
void

Definition at line 332 of file class.tslib_feuserauth.php.

tslib_feUserAuth::record_registration recs  ) 
 

Registration of records/"shopping basket" in session data This will take the input array, $recs, and merge into the current "recs" array found in the session data. If a change in the recs storage happens (which it probably does) the function setKey() is called in order to store the array again.

Parameters:
array The data array to merge into/override the current recs values. The $recs array is constructed as [table]][uid] = scalar-value (eg. string/integer).
Returns:
void

Definition at line 332 of file class.tslib_feuserauth.php.

tslib_feUserAuth::setKey type,
key,
data
 

Saves session data, either persistent or bound to current session cookie. Please see getKey() for more details. When a value is set the flags $this->userData_change or $this->sesData_change will be set so that the final call to ->storeSessionData() will know if a change has occurred and needs to be saved to the database. Notice: The key "recs" is already used by the function record_registration() which stores table/uid=value pairs in that key. This is used for the shopping basket among other things. Notice: Simply calling this function will not save the data to the database! The actual saving is done in storeSessionData() which is called as some of the last things in index_ts.php. So if you exit before this point, nothing gets saved of course! And the solution is to call $GLOBALS['TSFE']->storeSessionData(); before you exit.

Parameters:
string Session data type; Either "user" (persistent, bound to fe_users profile) or "ses" (temporary, bound to current session cookie)
string Key from the data array to store incoming data in; The session data (in either case) is an array ($this->uc / $this->sesData) and this value determines in which key the $data value will be stored.
mixed The data value to store in $key
Returns:
void
See also:
setKey(), storeSessionData(), record_registration()

Definition at line 307 of file class.tslib_feuserauth.php.

tslib_feUserAuth::setKey type,
key,
data
 

Saves session data, either persistent or bound to current session cookie. Please see getKey() for more details. When a value is set the flags $this->userData_change or $this->sesData_change will be set so that the final call to ->storeSessionData() will know if a change has occurred and needs to be saved to the database. Notice: The key "recs" is already used by the function record_registration() which stores table/uid=value pairs in that key. This is used for the shopping basket among other things. Notice: Simply calling this function will not save the data to the database! The actual saving is done in storeSessionData() which is called as some of the last things in index_ts.php. So if you exit before this point, nothing gets saved of course! And the solution is to call $GLOBALS['TSFE']->storeSessionData(); before you exit.

Parameters:
string Session data type; Either "user" (persistent, bound to fe_users profile) or "ses" (temporary, bound to current session cookie)
string Key from the data array to store incoming data in; The session data (in either case) is an array ($this->uc / $this->sesData) and this value determines in which key the $data value will be stored.
mixed The data value to store in $key
Returns:
void
See also:
setKey(), storeSessionData(), record_registration()

Definition at line 307 of file class.tslib_feuserauth.php.

tslib_feUserAuth::storeSessionData  ) 
 

Will write UC and session data. If the flag $this->userData_change has been set, the function ->writeUC is called (which will save persistent user session data) If the flag $this->sesData_change has been set, the fe_session_data table is updated with the content of $this->sesData (deleting any old record, inserting new)

Returns:
void
See also:
fetchSessionData(), getKey(), setKey()

Definition at line 256 of file class.tslib_feuserauth.php.

tslib_feUserAuth::storeSessionData  ) 
 

Will write UC and session data. If the flag $this->userData_change has been set, the function ->writeUC is called (which will save persistent user session data) If the flag $this->sesData_change has been set, the fe_session_data table is updated with the content of $this->sesData (deleting any old record, inserting new)

Returns:
void
See also:
fetchSessionData(), getKey(), setKey()

Definition at line 256 of file class.tslib_feuserauth.php.


Member Data Documentation

tslib_feUserAuth::$enablecolumns
 

Initial value:

 Array (
                'deleted' => 'deleted',
                'disabled' => 'disable',
                'starttime' => 'starttime',
                'endtime' => 'endtime'
        )

Reimplemented from t3lib_userAuth.

Definition at line 88 of file class.tslib_feuserauth.php.

tslib_feUserAuth::$groupData
 

Initial value:

 Array(
                'title' =>Array(),
                'uid' =>Array(),
                'pid' =>Array()
        )

Definition at line 112 of file class.tslib_feuserauth.php.


The documentation for this class was generated from the following files:


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6