本文整理汇总了PHP中ManiphestTaskStatus::renderFullDescription方法的典型用法代码示例。如果您正苦于以下问题:PHP ManiphestTaskStatus::renderFullDescription方法的具体用法?PHP ManiphestTaskStatus::renderFullDescription怎么用?PHP ManiphestTaskStatus::renderFullDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ManiphestTaskStatus
的用法示例。
在下文中一共展示了ManiphestTaskStatus::renderFullDescription方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildHeaderView
private function buildHeaderView(ManiphestTask $task)
{
$view = id(new PHUIHeaderView())->setHeader($task->getTitle())->setUser($this->getRequest()->getUser())->setPolicyObject($task);
$status = $task->getStatus();
$status_name = ManiphestTaskStatus::renderFullDescription($status);
$view->addProperty(PHUIHeaderView::PROPERTY_STATUS, $status_name);
return $view;
}
示例2: buildHeaderView
private function buildHeaderView(ManiphestTask $task)
{
$view = id(new PHUIHeaderView())->setHeader($task->getTitle())->setUser($this->getRequest()->getUser())->setPolicyObject($task);
$priority_name = ManiphestTaskPriority::getTaskPriorityName($task->getPriority());
$priority_color = ManiphestTaskPriority::getTaskPriorityColor($task->getPriority());
$status = $task->getStatus();
$status_name = ManiphestTaskStatus::renderFullDescription($status, $priority_name, $priority_color);
$view->addProperty(PHUIHeaderView::PROPERTY_STATUS, $status_name);
$view->setHeaderIcon(ManiphestTaskStatus::getStatusIcon($task->getStatus()) . ' ' . $priority_color);
if (ManiphestTaskPoints::getIsEnabled()) {
$points = $task->getPoints();
if ($points !== null) {
$points_name = pht('%s %s', $task->getPoints(), ManiphestTaskPoints::getPointsLabel());
$tag = id(new PHUITagView())->setName($points_name)->setShade('blue')->setType(PHUITagView::TYPE_SHADE);
$view->addTag($tag);
}
}
return $view;
}