PHP Class tl_article

Provide miscellaneous methods that are used by the data configuration array.
Inheritance: extends Backend
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Import the back end user object
public __construct ( )

addAliasButton() public méthode

Automatically generate the folder URL aliases
public addAliasButton ( array $arrButtons ) : array
$arrButtons array
Résultat array

addIcon() public méthode

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

checkPermission() public méthode

Check permissions to edit table tl_page
public checkPermission ( )

copyArticle() public méthode

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
Résultat string

cutArticle() public méthode

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
Résultat string

deleteArticle() public méthode

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
Résultat string

editArticle() public méthode

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
Résultat string

editHeader() public méthode

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
Résultat string

generateAlias() public méthode

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

getActiveLayoutSections() public méthode

Return all active layout sections as array
public getActiveLayoutSections ( DataContainer $dc ) : array
$dc DataContainer
Résultat array

getArticleTemplates() public méthode

Return all module templates as array
public getArticleTemplates ( ) : array
Résultat array

pasteArticle() public méthode

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
Résultat string

toggleIcon() public méthode

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
Résultat string

toggleVisibility() public méthode

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