本文整理匯總了PHP中Tracker_Artifact::getXRefAndTitle方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tracker_Artifact::getXRefAndTitle方法的具體用法?PHP Tracker_Artifact::getXRefAndTitle怎麽用?PHP Tracker_Artifact::getXRefAndTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tracker_Artifact
的用法示例。
在下文中一共展示了Tracker_Artifact::getXRefAndTitle方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: displayAdminConfirmDelete
public function displayAdminConfirmDelete(Tracker_IDisplayTrackerLayout $layout, Tracker_Artifact $artifact)
{
$token = new CSRFSynchronizerToken(TRACKER_BASE_URL . '/?tracker=' . (int) $this->id . '&func=admin-delete-artifact');
$this->displayAdminItemHeader($layout, 'clean');
echo '<div class="tracker_confirm_delete">';
echo '<form name="delete_artifact" method="post" action="' . TRACKER_BASE_URL . '/?tracker=' . (int) $this->id . '&func=admin-delete-artifact">';
echo $token->fetchHTMLInput();
echo $GLOBALS['Language']->getText('plugin_tracker_admin', 'clean_confirm_text', array($artifact->getXRefAndTitle()));
echo '<div class="tracker_confirm_delete_preview">';
echo $this->fetchFormElementsReadOnly($artifact);
echo '</div>';
echo '<div class="tracker_confirm_delete_buttons">';
echo '<input type="submit" tabindex="2" name="confirm" value="' . $GLOBALS['Language']->getText('plugin_tracker_admin', 'clean_confirm') . '" />';
echo '<input type="submit" tabindex="1" name="cancel" value="' . $GLOBALS['Language']->getText('plugin_tracker_admin', 'clean_cancel') . '" />';
echo '</div>';
echo '<input type="hidden" name="id" value="' . $artifact->getId() . '" />';
echo '</form>';
echo '</div>';
$this->displayFooter($layout);
}