PHP Class Contao\BackendUser

Inheritance: extends User
Datei anzeigen Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$alexf array Allowed excluded fields
$arrFilemountIds array File mount IDs
$objInstance object Current object instance (do not remove)
$strCookie string Name of the current cookie
$strTable string Name of the corresponding table

Public Methods

Method Description
__get ( string $strKey ) : mixed Extend parent getter class and modify some parameters
authenticate ( ) : boolean Redirect to the login screen if authentication fails
canEditFieldsOf ( string $table ) : boolean Return true if there is at least one allowed excluded field
hasAccess ( string $field, array $array ) : boolean Check whether the current user has a certain access right
isAllowed ( integer $int, array $row ) : boolean Return true if the current user is allowed to do the current operation on the current page
navigation ( boolean $blnShowAll = false ) : array Generate the navigation menu and return it as array
save ( ) Restore the original numeric file mounts (see #5083)

Protected Methods

Method Description
__construct ( ) Initialize the object
setUserFromDb ( ) Set all user properties from a database record

Method Details

__construct() protected method

Initialize the object
protected __construct ( )

__get() public method

Extend parent getter class and modify some parameters
public __get ( string $strKey ) : mixed
$strKey string
return mixed

authenticate() public method

Redirect to the login screen if authentication fails
public authenticate ( ) : boolean
return boolean True if the user could be authenticated

canEditFieldsOf() public method

Return true if there is at least one allowed excluded field
public canEditFieldsOf ( string $table ) : boolean
$table string
return boolean

hasAccess() public method

Check whether the current user has a certain access right
public hasAccess ( string $field, array $array ) : boolean
$field string
$array array
return boolean

isAllowed() public method

Return true if the current user is allowed to do the current operation on the current page
public isAllowed ( integer $int, array $row ) : boolean
$int integer
$row array
return boolean

navigation() public method

Generate the navigation menu and return it as array
public navigation ( boolean $blnShowAll = false ) : array
$blnShowAll boolean
return array

save() public method

Restore the original numeric file mounts (see #5083)
public save ( )

setUserFromDb() protected method

Set all user properties from a database record
protected setUserFromDb ( )

Property Details

$alexf protected_oe property

Allowed excluded fields
protected array $alexf
return array

$arrFilemountIds protected_oe property

File mount IDs
protected array $arrFilemountIds
return array

$objInstance protected_oe static_oe property

Current object instance (do not remove)
protected static object $objInstance
return object

$strCookie protected_oe property

Name of the current cookie
protected string $strCookie
return string

$strTable protected_oe property

Name of the corresponding table
protected string $strTable
return string