Documentation TYPO3 par Ameos |
Definition at line 79 of file class.tslib_feuserauth.php.
tslib_feUserAuth::start | ( | ) |
Starts a user session
Reimplemented from t3lib_userAuth.
Definition at line 144 of file class.tslib_feuserauth.php.
tslib_feUserAuth::getNewSessionRecord | ( | $ | tempuser | ) |
Returns a new session record for the current user for insertion into the DB.
Reimplemented from t3lib_userAuth.
Definition at line 158 of file class.tslib_feuserauth.php.
tslib_feUserAuth::isSetSessionCookie | ( | ) |
Determins whether a session cookie needs to be set (lifetime=0)
Reimplemented from t3lib_userAuth.
Definition at line 171 of file class.tslib_feuserauth.php.
tslib_feUserAuth::isRefreshTimeBasedCookie | ( | ) |
Determins whether a non-session cookie needs to be set (lifetime>0)
Reimplemented from t3lib_userAuth.
Definition at line 182 of file class.tslib_feuserauth.php.
tslib_feUserAuth::getLoginFormData | ( | ) |
Returns an info array with Login/Logout data submitted by a form or params
Reimplemented from t3lib_userAuth.
Definition at line 192 of file class.tslib_feuserauth.php.
References t3lib_div::_GP(), and t3lib_div::_POST().
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
Definition at line 223 of file class.tslib_feuserauth.php.
References $groupData, t3lib_div::array_merge(), t3lib_div::arrayToLogString(), t3lib_div::devLog(), t3lib_userAuth::getAuthInfoArray(), and t3lib_div::makeInstanceService().
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
Definition at line 313 of file class.tslib_feuserauth.php.
References $userTS, t3lib_TSparser::checkIncludeLines_array(), and t3lib_div::makeInstance().
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.
Definition at line 358 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)
Definition at line 380 of file class.tslib_feuserauth.php.
References t3lib_userAuth::writeUC().
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)
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. |
Definition at line 406 of file class.tslib_feuserauth.php.
Referenced by record_registration().
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.
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 |
Definition at line 431 of file class.tslib_feuserauth.php.
Referenced by record_registration().
tslib_feUserAuth::record_registration | ( | $ | recs, | |
$ | maxSizeOfSessionData = 0 | |||
) |
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.
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). | |
integer | The maximum size of stored session data. If zero, no limit is applied and even confirmation of cookie session is discarded. |
Definition at line 457 of file class.tslib_feuserauth.php.
tslib_feUserAuth::$enablecolumns |
Initial value:
Array ( 'deleted' => 'deleted', 'disabled' => 'disable', 'starttime' => 'starttime', 'endtime' => 'endtime' )
Reimplemented from t3lib_userAuth.
Definition at line 90 of file class.tslib_feuserauth.php.
tslib_feUserAuth::$groupData |
Initial value:
Array( 'title' =>Array(), 'uid' =>Array(), 'pid' =>Array() )
Definition at line 115 of file class.tslib_feuserauth.php.
Referenced by fetchGroupData().