PHP Класс Contao\FrontendUser

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

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

Свойство Тип Описание
$arrGroups array Groups
$objInstance FrontendUser Current object instance (do not remove)
$strCookie string Name of the current cookie
$strLoginPage string Group login page
$strTable string Name of the corresponding table

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

Метод Описание
__get ( string $strKey ) : mixed Extend parent getter class and modify some parameters
__set ( string $strKey, mixed $varValue ) Extend parent setter class and modify some parameters
authenticate ( ) : boolean Authenticate a user
findBy ( string $strColumn, mixed $varValue ) : boolean Save the original group membership
login ( ) : boolean Add the auto login resources
logout ( ) : boolean Remove the auto login resources
save ( ) Restore the original group membership

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

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

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

Extend parent setter class and modify some parameters
public __set ( string $strKey, mixed $varValue )
$strKey string
$varValue mixed

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

Authenticate a user
public authenticate ( ) : boolean
Результат boolean

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

Save the original group membership
public findBy ( string $strColumn, mixed $varValue ) : boolean
$strColumn string
$varValue mixed
Результат boolean

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

Add the auto login resources
public login ( ) : boolean
Результат boolean

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

Remove the auto login resources
public logout ( ) : boolean
Результат boolean

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

Restore the original group membership
public save ( )

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

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

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

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

Groups
protected array $arrGroups
Результат array

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

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

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

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

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

Group login page
protected string $strLoginPage
Результат string

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

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