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
 public function toggleIcons($arrRow, $href, $label, $title, $icon, $attributes, $strTable, $arrRootIds, $arrChildRecordIds, $blnCircularReference, $strPrevious, $strNext)
 {
     if ($arrRow['type'] != 'colsetPart' && $arrRow['type'] != 'colsetEnd') {
         return parent::toggleIcon($arrRow, $href, $label, $title, $icon, $attributes);
     }
 }
Exemple #2
0
 public function toggleButton($row, $href, $label, $title, $icon, $attributes)
 {
     $this->Import('BackendUser', 'User');
     if ($this->User->isAdmin || !in_array($row['type'], $this->User->contentelements)) {
         $objCallback = new tl_content();
         return $objCallback->toggleIcon($row, $href, $label, $title, $icon, $attributes);
     }
     return '';
 }
 /**
  * Hide toggle button for disabled content elements
  */
 public function toggleButton($row, $href, $label, $title, $icon, $attributes)
 {
     if ($this->User->isAdmin || in_array($row['type'], (array) $this->User->elements)) {
         $objCallback = new tl_content();
         return $objCallback->toggleIcon($row, $href, $label, $title, $icon, $attributes);
     }
     return '';
 }