PHP Класс tl_user

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

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

Метод Описание
__construct ( ) Import the back end user object
addIcon ( array $row, string $label, DataContainer $dc, array $args ) : string Add an image to each record
checkAdminDisable ( mixed $varValue, DataContainer $dc ) : mixed Prevent administrators from disabling their own account
checkAdminStatus ( mixed $varValue, DataContainer $dc ) : mixed Prevent administrators from downgrading their own account
checkPermission ( ) Check permissions to edit table tl_user
checkRemoveSession ( DataContainer $dc ) Check whether the user session should be removed
copyUser ( array $row, string $href, string $label, string $title, string $icon, string $attributes, string $table ) : string Return the copy page button
deleteUser ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the delete page button
editUser ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the edit user button
getModules ( ) : array Return all modules except profile modules
removeSession ( DataContainer $dc ) Remove the session if a user is deleted (see #5353)
sessionField ( DataContainer $dc ) : string Return a checkbox to delete session data
storeDateAdded ( DataContainer $dc ) Store the date when the account has been added
switchUser ( array $row, string $href, string $label, string $title, string $icon ) : string Generate a "switch account" button and return it as string
toggleIcon ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the "toggle visibility" button
toggleVisibility ( integer $intId, boolean $blnVisible, DataContainer $dc = null ) Disable/enable a user group

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

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

Import the back end user object
public __construct ( )

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

Add an image to each record
public addIcon ( array $row, string $label, DataContainer $dc, array $args ) : string
$row array
$label string
$dc DataContainer
$args array
Результат string

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

Prevent administrators from disabling their own account
public checkAdminDisable ( mixed $varValue, DataContainer $dc ) : mixed
$varValue mixed
$dc DataContainer
Результат mixed

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

Prevent administrators from downgrading their own account
public checkAdminStatus ( mixed $varValue, DataContainer $dc ) : mixed
$varValue mixed
$dc DataContainer
Результат mixed

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

Check permissions to edit table tl_user
public checkPermission ( )

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

Check whether the user session should be removed
public checkRemoveSession ( DataContainer $dc )
$dc DataContainer

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

Return the copy page button
public copyUser ( array $row, string $href, string $label, string $title, string $icon, string $attributes, string $table ) : string
$row array
$href string
$label string
$title string
$icon string
$attributes string
$table string
Результат string

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

Return the delete page button
public deleteUser ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string
$row array
$href string
$label string
$title string
$icon string
$attributes string
Результат string

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

Return the edit user button
public editUser ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string
$row array
$href string
$label string
$title string
$icon string
$attributes string
Результат string

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

Return all modules except profile modules
public getModules ( ) : array
Результат array

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

Remove the session if a user is deleted (see #5353)
public removeSession ( DataContainer $dc )
$dc DataContainer

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

Return a checkbox to delete session data
public sessionField ( DataContainer $dc ) : string
$dc DataContainer
Результат string

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

Store the date when the account has been added
public storeDateAdded ( DataContainer $dc )
$dc DataContainer

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

Generate a "switch account" button and return it as string
public switchUser ( array $row, string $href, string $label, string $title, string $icon ) : string
$row array
$href string
$label string
$title string
$icon string
Результат string

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

Return the "toggle visibility" button
public toggleIcon ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string
$row array
$href string
$label string
$title string
$icon string
$attributes string
Результат string

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

Disable/enable a user group
public toggleVisibility ( integer $intId, boolean $blnVisible, DataContainer $dc = null )
$intId integer
$blnVisible boolean
$dc DataContainer