PHP 클래스 tl_article

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

공개 메소드들

메소드 설명
__construct ( ) Import the back end user object
addAliasButton ( array $arrButtons ) : array Automatically generate the folder URL aliases
addIcon ( array $row, string $label ) : string Add an image to each page in the tree
checkPermission ( ) Check permissions to edit table tl_page
copyArticle ( array $row, string $href, string $label, string $title, string $icon, string $attributes, string $table ) : string Return the copy article button
cutArticle ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the cut article button
deleteArticle ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the delete article button
editArticle ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the edit article button
editHeader ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the edit header button
generateAlias ( mixed $varValue, DataContainer $dc ) : string Auto-generate an article alias if it has not been set yet
getActiveLayoutSections ( DataContainer $dc ) : array Return all active layout sections as array
getArticleTemplates ( ) : array Return all module templates as array
pasteArticle ( DataContainer $dc, array $row, string $table, boolean $cr, array $arrClipboard = null ) : string Return the paste article button
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 ( )

addAliasButton() 공개 메소드

Automatically generate the folder URL aliases
public addAliasButton ( array $arrButtons ) : array
$arrButtons array
리턴 array

addIcon() 공개 메소드

Add an image to each page in the tree
public addIcon ( array $row, string $label ) : string
$row array
$label string
리턴 string

checkPermission() 공개 메소드

Check permissions to edit table tl_page
public checkPermission ( )

copyArticle() 공개 메소드

Return the copy article button
public copyArticle ( 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

cutArticle() 공개 메소드

Return the cut article button
public cutArticle ( 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

deleteArticle() 공개 메소드

Return the delete article button
public deleteArticle ( 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

editArticle() 공개 메소드

Return the edit article button
public editArticle ( 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

editHeader() 공개 메소드

Return the edit header button
public editHeader ( 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

generateAlias() 공개 메소드

Auto-generate an article alias if it has not been set yet
public generateAlias ( mixed $varValue, DataContainer $dc ) : string
$varValue mixed
$dc DataContainer
리턴 string

getActiveLayoutSections() 공개 메소드

Return all active layout sections as array
public getActiveLayoutSections ( DataContainer $dc ) : array
$dc DataContainer
리턴 array

getArticleTemplates() 공개 메소드

Return all module templates as array
public getArticleTemplates ( ) : array
리턴 array

pasteArticle() 공개 메소드

Return the paste article button
public pasteArticle ( DataContainer $dc, array $row, string $table, boolean $cr, array $arrClipboard = null ) : string
$dc DataContainer
$row array
$table string
$cr boolean
$arrClipboard array
리턴 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