tl_page::addIcon PHP Method

addIcon() public method

Add an image to each page in the tree
public addIcon ( array $row, string $label, DataContainer $dc = null, string $imageAttribute = '', boolean $blnReturnImage = false, boolean $blnProtected = false ) : string
$row array
$label string
$dc DataContainer
$imageAttribute string
$blnReturnImage boolean
$blnProtected boolean
return string
    public function addIcon($row, $label, DataContainer $dc = null, $imageAttribute = '', $blnReturnImage = false, $blnProtected = false)
    {
        return Backend::addPageIcon($row, $label, $dc, $imageAttribute, $blnReturnImage, $blnProtected);
    }

Usage Example

Exemplo n.º 1
0
 public function addSublineToLabel($row, $label, DataContainer $dc = null, $imageAttribute = '', $blnReturnImage = false, $blnProtected = false)
 {
     if (!empty($row['subLineBz'])) {
         $label .= ' <span style="color:#b3b3b3;padding-left:3px">[' . $row['subLineBz'] . ']</span>';
     }
     return parent::addIcon($row, $label, $dc, $imageAttribute, $blnReturnImage, $blnProtected);
 }
All Usage Examples Of tl_page::addIcon