PHP Класс Contao\BackendUser

Наследование: extends User
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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)

Защищенные методы

Метод Описание
__construct ( ) Initialize the object
setUserFromDb ( ) Set all user properties from a database record

Описание методов

__construct() защищенный Метод

Initialize the object
protected __construct ( )

__get() публичный Метод

Extend parent getter class and modify some parameters
public __get ( string $strKey ) : mixed
$strKey string
Результат mixed

authenticate() публичный Метод

Redirect to the login screen if authentication fails
public authenticate ( ) : boolean
Результат boolean True if the user could be authenticated

canEditFieldsOf() публичный Метод

Return true if there is at least one allowed excluded field
public canEditFieldsOf ( string $table ) : boolean
$table string
Результат boolean

hasAccess() публичный Метод

Check whether the current user has a certain access right
public hasAccess ( string $field, array $array ) : boolean
$field string
$array array
Результат boolean

isAllowed() публичный Метод

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
Результат boolean

navigation() публичный Метод

Generate the navigation menu and return it as array
public navigation ( boolean $blnShowAll = false ) : array
$blnShowAll boolean
Результат array

save() публичный Метод

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

setUserFromDb() защищенный Метод

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

Описание свойств

$alexf защищенное свойство

Allowed excluded fields
protected array $alexf
Результат array

$arrFilemountIds защищенное свойство

File mount IDs
protected array $arrFilemountIds
Результат array

$objInstance защищенное статическое свойство

Current object instance (do not remove)
protected static object $objInstance
Результат object

$strCookie защищенное свойство

Name of the current cookie
protected string $strCookie
Результат string

$strTable защищенное свойство

Name of the corresponding table
protected string $strTable
Результат string