Central::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->getType() == __CLASS__) {
            switch ($tabnum) {
                case 1:
                    // all
                    $item->showMyView();
                    break;
                case 2:
                    $item->showGroupView();
                    break;
                case 3:
                    $item->showGlobalView();
                    break;
                case 4:
                    $item->showRSSView();
                    break;
            }
        }
        return true;
    }