本文整理汇总了PHP中PhabricatorUser::renderHandle方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorUser::renderHandle方法的具体用法?PHP PhabricatorUser::renderHandle怎么用?PHP PhabricatorUser::renderHandle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhabricatorUser
的用法示例。
在下文中一共展示了PhabricatorUser::renderHandle方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderForDisplay
public function renderForDisplay(PhabricatorUser $viewer)
{
try {
$target = $this->loadBuildTarget();
} catch (Exception $ex) {
return null;
}
return $viewer->renderHandle($target->getPHID());
}
示例2: renderConditionValue
public function renderConditionValue(PhabricatorUser $viewer, $value)
{
// TODO: While this is less of a mess than it used to be, it would still
// be nice to push this down into individual fields better eventually and
// stop guessing which values are PHIDs and which aren't.
if (!is_array($value)) {
return $value;
}
$type_unknown = PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN;
foreach ($value as $key => $val) {
if (is_string($val)) {
if (phid_get_type($val) !== $type_unknown) {
$value[$key] = $viewer->renderHandle($val);
}
}
}
return phutil_implode_html(', ', $value);
}
示例3: renderArtifactSummary
public function renderArtifactSummary(PhabricatorUser $viewer)
{
$artifact = $this->getBuildArtifact();
$file_phid = $artifact->getProperty('drydockLeasePHID');
return $viewer->renderHandle($file_phid);
}
示例4: getDisplayDescription
public function getDisplayDescription(PhabricatorUser $viewer, PhabricatorCalendarImportLog $log)
{
return $viewer->renderHandle($log->getParameter('file.phid'));
}
示例5: getDisplayDescription
public function getDisplayDescription(PhabricatorUser $viewer, PhabricatorCalendarImportLog $log)
{
$event_phid = $log->getParameter('phid');
return $viewer->renderHandle($event_phid);
}
示例6: appendImportProperties
public function appendImportProperties(PhabricatorUser $viewer, PhabricatorCalendarImport $import, PHUIPropertyListView $properties)
{
$phid_key = PhabricatorCalendarImportICSFileTransaction::PARAMKEY_FILE;
$file_phid = $import->getParameter($phid_key);
$properties->addProperty(pht('Source File'), $viewer->renderHandle($file_phid));
}
示例7: getDisplayDescription
public function getDisplayDescription(PhabricatorUser $viewer, PhabricatorCalendarImportLog $log)
{
$phid = $log->getParameter('phid');
return pht('Ignored an event (%s) because the original version of this event ' . 'was created here.', $viewer->renderHandle($phid));
}