本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}