Document_Item::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)
    {
        switch ($item->getType()) {
            case 'Document':
                switch ($tabnum) {
                    case 1:
                        self::showForDocument($item);
                        break;
                    case 2:
                        self::showForItem($item, $withtemplate);
                        break;
                }
                return true;
            default:
                self::showForitem($item, $withtemplate);
        }
    }

Usage Example

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($item->getType()) {
         case 'PluginFormcreatorForm':
             Document_Item::displayTabContentForItem($item);
             break;
     }
     return true;
 }