PHP 클래스 tl_user

상속: extends Backend
파일 보기 프로젝트 열기: contao/core-bundle

공개 메소드들

메소드 설명
__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