當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonGLPI::showVisibility方法代碼示例

本文整理匯總了PHP中CommonGLPI::showVisibility方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonGLPI::showVisibility方法的具體用法?PHP CommonGLPI::showVisibility怎麽用?PHP CommonGLPI::showVisibility使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonGLPI的用法示例。


在下文中一共展示了CommonGLPI::showVisibility方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: displayTabContentForItem

 /**
  * @param $item         CommonGLPI object
  * @param $tabnum       (default 1)
  * @param $withtemplate (default 0)
  **/
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($item->getType()) {
         case 'Reminder':
             $item->showVisibility();
             return true;
     }
     return false;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:14,代碼來源:reminder.class.php

示例2: displayTabContentForItem

 /**
  * @param $item         CommonGLPI object
  * @param $tabnum       (default 1)
  * @param $withtemplate (default 0)
  **/
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($item->getType()) {
         case 'RSSFeed':
             switch ($tabnum) {
                 case 1:
                     $item->showFeedContent();
                     return true;
                 case 2:
                     $item->showVisibility();
                     return true;
             }
     }
     return false;
 }
開發者ID:stweil,項目名稱:glpi,代碼行數:20,代碼來源:rssfeed.class.php

示例3: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == __CLASS__) {
         switch ($tabnum) {
             case 1:
                 $item->showFull();
                 break;
             case 2:
                 $item->showVisibility();
                 break;
             case 3:
                 $item->showForm($item->getID());
                 break;
         }
     }
     return true;
 }
開發者ID:jose-martins,項目名稱:glpi,代碼行數:17,代碼來源:knowbaseitem.class.php

示例4: displayTabContentForItem

   static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) {

      if ($item->getType() == 'PluginMonitoringSlider') {
         switch($tabnum) {

            case 1:
               $pmSlider_item = new PluginMonitoringSlider_item();
               $pmSlider_item->view($item->getID(), 1);
               break;

            case 2 :
               $item->showVisibility();
               break;

         }
      } else if ($item->getType() == 'Central') {
         if (Session::haveRight("plugin_monitoring_slider", PluginMonitoringSlider::HOMEPAGE)) {
            $pmSlider_item = new PluginMonitoringSlider_item();
            $pmSlider = new PluginMonitoringSlider();
            $a_sliders = $pmSlider->getSliders(1);
            foreach ($a_sliders as $sliders_id=>$name) {
               $pmSlider->getFromDB($sliders_id);
               if ($pmSlider->haveVisibilityAccess()) {
                  $pmSlider_item->view($sliders_id);
              }
            }
         }
      }

      return true;
   }
開發者ID:euqip,項目名稱:glpi-smartcities,代碼行數:31,代碼來源:slider.class.php

示例5: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'PluginMonitoringDisplayview') {
         switch ($tabnum) {
             case 1:
                 $pmDisplayview_item = new PluginMonitoringDisplayview_item();
                 $pmDisplayview_item->view($item->getID(), 1);
                 break;
             case 2:
                 $item->showVisibility();
                 break;
         }
         if ($tabnum >= 20) {
             $pmDisplayview_rule = new PluginMonitoringDisplayview_rule();
             $pmDisplayview_rule->ShowRulesTabs($item->getID(), $tabnum);
         }
     } else {
         if ($item->getType() == 'Central') {
             if (Session::haveRight("plugin_monitoring_displayview", PluginMonitoringDisplayview::HOMEPAGE)) {
                 $pmDisplayview_item = new PluginMonitoringDisplayview_item();
                 $pmDisplayview = new PluginMonitoringDisplayview();
                 $a_views = $pmDisplayview->getViews(1);
                 foreach ($a_views as $views_id => $name) {
                     $pmDisplayview->getFromDB($views_id);
                     if ($pmDisplayview->haveVisibilityAccess()) {
                         $pmDisplayview_item->view($views_id);
                     }
                 }
             }
         }
     }
     return true;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:33,代碼來源:displayview.class.php

示例6: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'PluginMonitoringDisplayview') {
         switch ($tabnum) {
             case 1:
                 $pmDisplayview_item = new PluginMonitoringDisplayview_item();
                 $pmDisplayview_item->view($item->getID(), 1);
                 break;
             case 2:
                 $item->showVisibility();
                 break;
         }
         if ($tabnum >= 20) {
             $pmDisplayview_rule = new PluginMonitoringDisplayview_rule();
             $pmDisplayview_rule->ShowRulesTabs($item->getID(), $tabnum);
         }
     }
     return true;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:19,代碼來源:displayview.class.php


注:本文中的CommonGLPI::showVisibility方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。