本文整理汇总了PHP中PhabricatorRepository::getHumanReadableDetail方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorRepository::getHumanReadableDetail方法的具体用法?PHP PhabricatorRepository::getHumanReadableDetail怎么用?PHP PhabricatorRepository::getHumanReadableDetail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhabricatorRepository
的用法示例。
在下文中一共展示了PhabricatorRepository::getHumanReadableDetail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildStorageProperties
private function buildStorageProperties(PhabricatorRepository $repository, PhabricatorActionListView $actions)
{
$viewer = $this->getRequest()->getUser();
$view = id(new PHUIPropertyListView())->setUser($viewer)->setActionList($actions);
$service_phid = $repository->getAlmanacServicePHID();
if ($service_phid) {
$v_service = $viewer->renderHandle($service_phid);
} else {
$v_service = phutil_tag('em', array(), pht('Local'));
}
$view->addProperty(pht('Storage Service'), $v_service);
$view->addProperty(pht('Storage Path'), $repository->getHumanReadableDetail('local-path'));
return $view;
}
示例2: buildLocalProperties
private function buildLocalProperties(PhabricatorRepository $repository, PhabricatorActionListView $actions)
{
$viewer = $this->getRequest()->getUser();
$view = id(new PHUIPropertyListView())->setUser($viewer)->setActionList($actions);
$view->addProperty(pht('Local Path'), $repository->getHumanReadableDetail('local-path'));
return $view;
}