Computer_Item::displayTabContentForItem PHP Method

displayTabContentForItem() static public method

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI CommonGLPI object
$tabnum (default 1)
$withtemplate (default 0)
    static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
    {
        switch ($item->getType()) {
            case 'Phone':
            case 'Printer':
            case 'Peripheral':
            case 'Monitor':
                self::showForItem($item);
                return true;
            case 'Computer':
                self::showForComputer($item);
                return true;
        }
    }