Group::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 'Group':
                switch ($tabnum) {
                    case 1:
                        $item->showItems(false);
                        return true;
                    case 2:
                        $item->showItems(true);
                        return true;
                    case 3:
                        $item->showLDAPForm($item->getID());
                        return true;
                    case 4:
                        $item->showChildren();
                        return true;
                }
                break;
        }
        return false;
    }