PHP 클래스 tl_member

Provide miscellaneous methods that are used by the data configuration array.
상속: extends Backend
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Import the back end user object
addIcon ( array $row, string $label, DataContainer $dc, array $args ) : array Add an image to each record
checkRemoveSession ( DataContainer $dc ) Check whether the user session should be removed
getActiveGroups ( ) : array Filter disabled groups
removeSession ( DataContainer $dc ) Remove the session if a user is deleted (see #5353)
setNewPassword ( string $strPassword, DataContainer | MemberModel $user ) : string Call the "setNewPassword" callback
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 ) : array
$row array
$label string
$dc DataContainer
$args array
리턴 array

checkRemoveSession() 공개 메소드

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

getActiveGroups() 공개 메소드

Filter disabled groups
public getActiveGroups ( ) : array
리턴 array

removeSession() 공개 메소드

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

setNewPassword() 공개 메소드

Call the "setNewPassword" callback
public setNewPassword ( string $strPassword, DataContainer | MemberModel $user ) : string
$strPassword string
$user DataContainer | MemberModel
리턴 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