PHP Class Contao\BackendUser

Inheritance: extends User
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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)

Méthodes protégées

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

Method Details

__construct() protected méthode

Initialize the object
protected __construct ( )

__get() public méthode

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

authenticate() public méthode

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

canEditFieldsOf() public méthode

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

hasAccess() public méthode

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

isAllowed() public méthode

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
Résultat boolean

navigation() public méthode

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

save() public méthode

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

setUserFromDb() protected méthode

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

Property Details

$alexf protected_oe property

Allowed excluded fields
protected array $alexf
Résultat array

$arrFilemountIds protected_oe property

File mount IDs
protected array $arrFilemountIds
Résultat array

$objInstance protected_oe static_oe property

Current object instance (do not remove)
protected static object $objInstance
Résultat object

$strCookie protected_oe property

Name of the current cookie
protected string $strCookie
Résultat string

$strTable protected_oe property

Name of the corresponding table
protected string $strTable
Résultat string