TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\FrontendBackendUserAuthentication Class Reference
Inheritance diagram for TYPO3\CMS\Backend\FrontendBackendUserAuthentication:
TYPO3\CMS\Core\Authentication\BackendUserAuthentication TYPO3\CMS\Core\Authentication\AbstractUserAuthentication

Public Member Functions

 initializeAdminPanel ()
 
 initializeFrontendEdit ()
 
 isFrontendEditingActive ()
 
 displayAdminPanel ()
 
 isAdminPanelVisible ()
 
 checkBackendAccessSettingsFromInitPhp ()
 
 extPageReadAccess ($pageRec)
 
 extGetTreeList ($id, $depth, $begin=0, $perms_clause)
 
 extGetLL ($key)
 
- Public Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 __construct ()
 
 isAdmin ()
 
 isMemberOfGroup ($groupId)
 
 doesUserHaveAccess ($row, $perms)
 
 isInWebMount ($id, $readPerms='', $exitOnError=0)
 
 modAccess ($conf, $exitOnError)
 
 getPagePermsClause ($perms)
 
 calcPerms ($row)
 
 isRTE ()
 
 check ($type, $value)
 
 checkAuthMode ($table, $field, $value, $authMode)
 
 checkLanguageAccess ($langValue)
 
 checkFullLanguagesAccess ($table, $record)
 
 recordEditAccessInternals ($table, $idOrRow, $newRecord=false, $deletedRecord=false, $checkFullLanguageAccess=false)
 
 isPSet ($compiledPermissions, $tableName, $actionType='')
 
 mayMakeShortcut ()
 
 workspaceCannotEditRecord ($table, $recData)
 
 workspaceCannotEditOfflineVersion ($table, $recData)
 
 workspaceAllowLiveRecordsInPID ($pid, $table)
 
 workspaceCreateNewRecord ($pid, $table)
 
 workspaceAllowAutoCreation ($table, $id, $recpid)
 
 workspaceCheckStageForCurrent ($stage)
 
 workspacePublishAccess ($wsid)
 
 workspaceSwapAccess ()
 
 getTSConfig ($objectString, $config='')
 
 getTSConfigVal ($objectString)
 
 getTSConfigProp ($objectString)
 
 returnWebmounts ()
 
 setWebmounts (array $mountPointUids, $append=false)
 
 jsConfirmation ($bitmask)
 
 fetchGroupData ()
 
 fetchGroups ($grList, $idList='')
 
 setCachedList ($cList)
 
 getCategoryMountPoints ()
 
 getFileMountRecords ()
 
 getFileStorages ()
 
 evaluateUserSpecificFileFilterSettings ()
 
 getFilePermissions ()
 
 getFilePermissionsForStorage (\TYPO3\CMS\Core\Resource\ResourceStorage $storageObject)
 
 getDefaultUploadTemporaryFolder ()
 
 addTScomment ($str)
 
 workspaceInit ()
 
 checkWorkspace ($wsRec, $fields='uid, title, adminusers, members, reviewers, publish_access, stagechg_notification')
 
 checkWorkspaceCurrent ()
 
 setWorkspace ($workspaceId)
 
 setTemporaryWorkspace ($workspaceId)
 
 setDefaultWorkspace ()
 
 setWorkspacePreview ($previewState)
 
 getDefaultWorkspace ()
 
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename='', $recuid='', $recpid='', $event_pid=-1, $NEWid='', $userId=0)
 
 simplelog ($message, $extKey='', $error=0)
 
 checkLockToIP ()
 
 backendCheckLogin ($proceedIfNoUserIsLoggedIn=false)
 
 checkCLIuser ()
 
 backendSetUC ()
 
 overrideUC ()
 
 resetUC ()
 
 logoff ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 __construct ()
 
 start ()
 
 isSetSessionCookie ()
 
 isRefreshTimeBasedCookie ()
 
 checkAuthentication ()
 
 createSessionId ()
 
 createUserSession ($tempuser)
 
 getNewSessionRecord ($tempuser)
 
 fetchUserSession ($skipSessionUpdate=false)
 
 logoff ()
 
 removeCookie ($cookieName)
 
 isExistingSessionRecord ($id)
 
 isCookieSet ()
 
 veriCode ()
 
 writeUC ($variable='')
 
 unpack_uc ($theUC='')
 
 pushModuleData ($module, $data, $noSave=0)
 
 getModuleData ($module, $type='')
 
 getSessionData ($key)
 
 setAndSaveSessionData ($key, $data)
 
 getLoginFormData ()
 
 processLoginData ($loginData, $passwordTransmissionStrategy='')
 
 getAuthInfoArray ()
 
 compareUident ($user, $loginData, $passwordCompareStrategy='')
 
 gc ()
 
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename, $recuid, $recpid)
 
 checkLogFailures ($email, $secondsBack, $maxFailures)
 
 setBeUserByUid ($uid)
 
 setBeUserByName ($name)
 
 getRawUserByUid ($uid)
 
 getRawUserByName ($name)
 
 fetchUserRecord ($dbUser, $username, $extraWhere='')
 

Public Attributes

 $formfield_uname = ''
 
 $formfield_uident = ''
 
 $writeStdLog = false
 
 $writeAttemptLog = false
 
 $extPageInTreeInfo = []
 
 $extAdmEnabled = false
 
 $adminPanel = null
 
 $frontendEdit = null
 
 $extAdminConfig = []
 
- Public Attributes inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 $usergroup_column = 'usergroup'
 
 $usergroup_table = 'be_groups'
 
 $groupData
 
 $userGroups = []
 
 $userGroupsUID = []
 
 $groupList = ''
 
 $workspace = -99
 
 $workspaceRec = []
 
 $dataLists
 
 $includeHierarchy = []
 
 $includeGroupArray = []
 
 $OS = ''
 
 $TSdataArray = []
 
 $userTS_text = ''
 
 $userTS = []
 
 $userTSUpdated = false
 
 $userTS_dontGetCached = false
 
 $errorMsg = ''
 
 $checkWorkspaceCurrent_cache = null
 
 $session_table = 'be_sessions'
 
 $user_table = 'be_users'
 
 $username_column = 'username'
 
 $userident_column = 'password'
 
 $userid_column = 'uid'
 
 $lastLogin_column = 'lastlogin'
 
 $enablecolumns
 
 $formfield_uname = 'username'
 
 $formfield_uident = 'userident'
 
 $formfield_status = 'login_status'
 
 $writeStdLog = true
 
 $writeAttemptLog = true
 
 $auth_timeout_field = 6000
 
 $firstMainGroup = 0
 
 $uc
 
 $uc_default
 
- Public Attributes inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 $session_table = ''
 
 $name = ''
 
 $get_name = ''
 
 $user_table = ''
 
 $usergroup_table = ''
 
 $username_column = ''
 
 $userident_column = ''
 
 $userid_column = ''
 
 $usergroup_column = ''
 
 $lastLogin_column = ''
 
 $enablecolumns
 
 $showHiddenRecords = false
 
 $formfield_uname = ''
 
 $formfield_uident = ''
 
 $formfield_status = ''
 
 $auth_timeout_field = 0
 
 $lifetime = 0
 
 $gc_time = 0
 
 $gc_probability = 1
 
 $writeStdLog = false
 
 $writeAttemptLog = false
 
 $sendNoCacheHeaders = true
 
 $getFallBack = false
 
 $hash_length = 32
 
 $getMethodEnabled = false
 
 $lockIP = 4
 
 $lockHashKeyWords = 'useragent'
 
 $warningEmail = ''
 
 $warningPeriod = 3600
 
 $warningMax = 3
 
 $checkPid = true
 
 $checkPid_value = 0
 
 $id
 
 $loginFailure = false
 
 $loginSessionStarted = false
 
 $user = null
 
 $get_URL_ID = ''
 
 $newSessionID = false
 
 $forceSetCookie = false
 
 $dontSetCookie = false
 
 $loginType = ''
 
 $svConfig = []
 
 $writeDevLog = false
 
 $uc
 

Protected Member Functions

 getLanguageService ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 initializeDbMountpointsInWorkspace ()
 
 isUserAllowedToLogin ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 setSessionCookie ()
 
 getCookieDomain ()
 
 getCookie ($cookieName)
 
 regenerateSessionId ()
 
 fetchUserSessionFromDB ()
 
 user_where_clause ()
 
 ipLockClause ()
 
 ipLockClause_remoteIPNumber ($parts)
 
 hashLockClause ()
 
 hashLockClause_getHashInt ()
 
 getDatabaseConnection ()
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
static getCookieName ()
 
- Protected Attributes inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 $fileStorages
 
 $filePermissions
 
- Protected Attributes inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 $cookieWasSetOnCurrentRequest = false
 
 $db = null
 

Detailed Description

TYPO3 backend user authentication in the TSFE frontend. This includes mainly functions related to the Admin Panel

Definition at line 25 of file FrontendBackendUserAuthentication.php.

Member Function Documentation

◆ checkBackendAccessSettingsFromInitPhp()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::checkBackendAccessSettingsFromInitPhp ( )

Implementing the access checks that the TYPO3 CMS bootstrap script does before a user is ever logged in. Used in the frontend.

Returns
bool Returns TRUE if access is OK

Definition at line 177 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\cmpIP(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isUserAllowedToLogin().

◆ displayAdminPanel()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::displayAdminPanel ( )

Delegates to the appropriate view and renders the admin panel content.

Returns
string.

Definition at line 151 of file FrontendBackendUserAuthentication.php.

◆ extGetLL()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extGetLL (   $key)

Returns the label for key. If a translation for the language set in $this->uc['lang'] is found that is returned, otherwise the default value. If the global variable $LOCAL_LANG is NOT an array (yet) then this function loads the global $LOCAL_LANG array with the content of "sysext/lang/locallang_tsfe.xlf" such that the values therein can be used for labels in the Admin Panel

Parameters
string$keyKey for a label in the $GLOBALS['LOCAL_LANG'] array of "sysext/lang/locallang_tsfe.xlf
Returns
string The value for the $key

Definition at line 285 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, and TYPO3\CMS\Backend\FrontendBackendUserAuthentication\getLanguageService().

◆ extGetTreeList()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extGetTreeList (   $id,
  $depth,
  $begin = 0,
  $perms_clause 
)

Generates a list of Page-uid's from $id. List does not include $id itself The only pages excluded from the list are deleted pages.

Parameters
int$idStart page id
int$depthDepth to traverse down the page tree.
int$beginIs an optional integer that determines at which level in the tree to start collecting uid's. Zero means 'start right away', 1 = 'next level and out'
string$perms_clausePerms clause
Returns
string Returns the list with a comma in the end (if any pages selected!)

Definition at line 232 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\$id, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ extPageReadAccess()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extPageReadAccess (   $pageRec)

Evaluates if the Backend User has read access to the input page record. The evaluation is based on both read-permission and whether the page is found in one of the users webmounts. Only if both conditions are TRUE will the function return TRUE. Read access means that previewing is allowed etc. Used in

Parameters
array$pageRecThe page record to evaluate for
Returns
bool TRUE if read access

Definition at line 212 of file FrontendBackendUserAuthentication.php.

References TYPO3\CMS\Core\Authentication\BackendUserAuthentication\doesUserHaveAccess(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isInWebMount().

◆ getLanguageService()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::getLanguageService ( )
protected
Returns
LanguageService

Definition at line 300 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\FrontendBackendUserAuthentication\extGetLL().

◆ initializeAdminPanel()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::initializeAdminPanel ( )

◆ initializeFrontendEdit()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::initializeFrontendEdit ( )

◆ isAdminPanelVisible()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::isAdminPanelVisible ( )

Determines whether the admin panel is enabled and visible.

Returns
bool Whether the admin panel is enabled and visible

Definition at line 161 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

◆ isFrontendEditingActive()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::isFrontendEditingActive ( )

Determines whether frontend editing is currently active.

Returns
bool Whether frontend editing is active

Definition at line 137 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\FrontendBackendUserAuthentication\initializeFrontendEdit().

Member Data Documentation

◆ $adminPanel

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$adminPanel = null

Definition at line 72 of file FrontendBackendUserAuthentication.php.

◆ $extAdmEnabled

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extAdmEnabled = false

Definition at line 67 of file FrontendBackendUserAuthentication.php.

◆ $extAdminConfig

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extAdminConfig = []

Definition at line 82 of file FrontendBackendUserAuthentication.php.

◆ $extPageInTreeInfo

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extPageInTreeInfo = []

Definition at line 60 of file FrontendBackendUserAuthentication.php.

◆ $formfield_uident

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$formfield_uident = ''

Definition at line 39 of file FrontendBackendUserAuthentication.php.

◆ $formfield_uname

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$formfield_uname = ''

Definition at line 32 of file FrontendBackendUserAuthentication.php.

◆ $frontendEdit

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$frontendEdit = null

Definition at line 77 of file FrontendBackendUserAuthentication.php.

◆ $writeAttemptLog

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$writeAttemptLog = false

Definition at line 53 of file FrontendBackendUserAuthentication.php.

◆ $writeStdLog

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$writeStdLog = false

Definition at line 46 of file FrontendBackendUserAuthentication.php.