static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { switch ($item->getType()) { case 'Preference': self::showForUser(Session::getLoginUserID()); return true; case __CLASS__: switch ($tabnum) { case 1: $item->showFormGlobal($_GET['_target'], $_GET["displaytype"]); return true; case 2: Session::checkRight(self::$rightname, self::PERSONAL); $item->showFormPerso($_GET['_target'], $_GET["displaytype"]); return true; } } return false; }