本文整理匯總了PHP中CommonGLPI::showTimeline方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonGLPI::showTimeline方法的具體用法?PHP CommonGLPI::showTimeline怎麽用?PHP CommonGLPI::showTimeline使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonGLPI
的用法示例。
在下文中一共展示了CommonGLPI::showTimeline方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
switch ($item->getType()) {
case __CLASS__:
switch ($tabnum) {
case 1:
echo "<div class='timeline_box'>";
$rand = mt_rand();
$item->showTimelineForm($rand);
$item->showTimeline($rand);
echo "</div>";
break;
case 2:
if (!isset($_GET['load_kb_sol'])) {
$_GET['load_kb_sol'] = 0;
}
$item->showSolutionForm($_GET['load_kb_sol']);
if ($item->canApprove()) {
$fup = new TicketFollowup();
$fup->showApprobationForm($item);
}
break;
case 3:
$satisfaction = new TicketSatisfaction();
if ($item->fields['status'] == self::CLOSED && $satisfaction->getFromDB($_GET["id"])) {
$duration = Entity::getUsedConfig('inquest_duration', $item->fields['entities_id']);
$date2 = strtotime($satisfaction->fields['date_begin']);
if ($duration == 0 || strtotime("now") - $date2 <= $duration * DAY_TIMESTAMP) {
$satisfaction->showForm($item);
} else {
echo "<p class='center b'>" . __('Satisfaction survey expired') . "</p>";
}
} else {
echo "<p class='center b'>" . __('No generated survey') . "</p>";
}
break;
case 4:
$item->showStats();
break;
}
break;
case 'Group':
case 'SLT':
default:
self::showListForItem($item);
}
return true;
}