当前位置: 首页>>代码示例>>PHP>>正文


PHP Tracker_Artifact::getUri方法代码示例

本文整理汇总了PHP中Tracker_Artifact::getUri方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracker_Artifact::getUri方法的具体用法?PHP Tracker_Artifact::getUri怎么用?PHP Tracker_Artifact::getUri使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tracker_Artifact的用法示例。


在下文中一共展示了Tracker_Artifact::getUri方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getErrorMessage

 public function getErrorMessage()
 {
     $backlog_item_name = $this->artifact->getTitle();
     $tracker_name = $this->artifact->getTracker()->getName();
     $uri = $this->artifact->getUri();
     return $GLOBALS['Language']->getText('plugin_cardwall', 'cells_not_displayed', array($backlog_item_name, $tracker_name, $uri));
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:SwimlineSoloNoMatchingColumns.class.php

示例2: sendResponse

 private function sendResponse(Codendi_Request $request, $feedback_level, $message, $unsubscribe)
 {
     if ($request->isAjax()) {
         $this->sendAjaxResponse($unsubscribe, $message);
         return;
     }
     $GLOBALS['Response']->addFeedback($feedback_level, $message);
     $GLOBALS['Response']->redirect($this->artifact->getUri());
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:9,代码来源:ArtifactNotificationSubscriber.class.php

示例3: __construct

 public function __construct(Tracker_Artifact $artifact)
 {
     $this->id = $artifact->getId();
     $this->title = $artifact->getTitle();
     $this->url = $artifact->getUri();
     $this->artifact = $artifact;
     $this->color = $this->artifact->getTracker()->getColor();
     $this->type = $this->artifact->getTracker()->getName();
     $this->short_type = $this->artifact->getTracker()->getItemName();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:BacklogItem.class.php

示例4: __construct

 /**
  * @param Tracker_Artifact        $artifact The child
  * @param Tracker_Artifact        $parent   The parent
  * @param Tracker_Semantic_Status $semantic The status semantic used by the corresponding tracker
  */
 public function __construct(Tracker_Artifact $artifact, Tracker_Artifact $parent, Tracker_Semantic_Status $semantic)
 {
     $base_url = get_server_url();
     $this->xref = $artifact->getXRef();
     $this->title = $artifact->getTitle();
     $this->id = $artifact->getId();
     $this->url = $base_url . $artifact->getUri();
     $this->status = $semantic->getStatus($artifact);
     $this->parent_id = $parent->getId();
     $this->has_children = $artifact->hasChildren();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:16,代码来源:ArtifactChildPresenter.class.php

示例5: __construct

 public function __construct($follow_ups, $artifact_links, $form_elements, Tracker_Artifact $artifact, PFUser $user)
 {
     $this->follow_ups = $follow_ups;
     $this->artifact_links = $artifact_links;
     $this->artifact = $artifact;
     $this->artifact_id = $artifact->getId();
     $this->artifact_title = $artifact->getTitle();
     $this->artifact_uri = $artifact->getUri();
     $this->last_changeset_id = $artifact->getLastChangeset()->getId();
     $this->form_elements = $form_elements;
     $this->user = $user;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:EditArtifactInPlacePresenter.php

示例6: parent_url

 public function parent_url()
 {
     if ($this->parent) {
         return $this->getUrlWithRedirect($this->parent->getUri());
     }
 }
开发者ID:ansarbek,项目名称:tuleap,代码行数:6,代码来源:BacklogItemPresenter.class.php

示例7: sendReminder

 /**
  * Send a notification
  *
  * @param Array  $recipients the list of recipients
  * @param Array  $headers    the additional headers
  * @param String $subject    the subject of the message
  * @param String $htmlBody   the html content of the message
  * @param String $txtBody    the text content of the message
  *
  * @return Void
  */
 protected function sendReminder(Tracker_Artifact $artifact, $recipients, $headers, $subject, $htmlBody, $txtBody)
 {
     $hp = Codendi_HTMLPurifier::instance();
     $breadcrumbs = array();
     $project = $this->getTracker()->getProject();
     $trackerId = $this->getTracker()->getID();
     $artifactId = $artifact->getID();
     $mail_enhancer = new MailEnhancer();
     $breadcrumbs[] = '<a href="' . get_server_url() . '/projects/' . $project->getUnixName(true) . '" />' . $project->getPublicName() . '</a>';
     $breadcrumbs[] = '<a href="' . get_server_url() . '/plugins/tracker/?tracker=' . (int) $trackerId . '" />' . $hp->purify($this->getTracker()->getName()) . '</a>';
     $breadcrumbs[] = '<a href="' . get_server_url() . '/plugins/tracker/?aid=' . (int) $artifactId . '" />' . $hp->purify($this->getTracker()->getName() . ' #' . $artifactId) . '</a>';
     $mail_enhancer->addPropertiesToLookAndFeel('breadcrumbs', $breadcrumbs);
     $mail_enhancer->addPropertiesToLookAndFeel('title', $hp->purify($subject));
     $mail_enhancer->addHeader("X-Codendi-Project", $this->getTracker()->getProject()->getUnixName());
     $mail_enhancer->addHeader("X-Codendi-Tracker", $this->getTracker()->getItemName());
     $mail_enhancer->addHeader("X-Codendi-Artifact-ID", $artifact->getId());
     foreach ($headers as $header) {
         $mail_enhancer->addHeader($header['name'], $header['value']);
     }
     $mail_notification_builder = new MailNotificationBuilder(new MailBuilder(TemplateRendererFactory::build()));
     $mail_notification_builder->buildAndSendEmail($project, $recipients, $subject, $htmlBody, $txtBody, get_server_url() . $artifact->getUri(), trackerPlugin::TRUNCATED_SERVICE_NAME, $mail_enhancer);
 }
开发者ID:ansarbek,项目名称:tuleap,代码行数:33,代码来源:Tracker_DateReminderManager.class.php


注:本文中的Tracker_Artifact::getUri方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。