CommonTreeDropdown::displayTabContentForItem PHP Method

displayTabContentForItem() static public method

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI
    static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
    {
        if ($item instanceof CommonTreeDropdown) {
            $item->showChildren();
        }
        return true;
    }

Usage Example

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'TicketTemplate') {
         self::showForTicketTemplate($item, $withtemplate);
     }
     return parent::displayTabContentForItem($item, $tabnum, $withtemplate);
 }