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


PHP Tracker_Artifact_Changeset::getSubmittedBy方法代码示例

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


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

示例1: exportFullHistory

 public function exportFullHistory(SimpleXMLElement $artifact_xml, Tracker_Artifact_Changeset $changeset)
 {
     $changeset_xml = $artifact_xml->addChild('changeset');
     if ($changeset->getSubmittedBy()) {
         $this->user_xml_exporter->exportUserByUserId($changeset->getSubmittedBy(), $changeset_xml, 'submitted_by');
     } elseif ($changeset->getEmail()) {
         $this->user_xml_exporter->exportUserByMail($changeset->getEmail(), $changeset_xml, 'submitted_by');
     }
     $submitted_on = $changeset_xml->addChild('submitted_on', date('c', $changeset->getSubmittedOn()));
     $submitted_on->addAttribute('format', 'ISO8601');
     $comments_node = $changeset_xml->addChild('comments');
     if ($changeset->getComment()) {
         $changeset->getComment()->exportToXML($comments_node);
     }
     $this->values_exporter->exportChangedFields($artifact_xml, $changeset_xml, $changeset->getArtifact(), $changeset->getValues());
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:16,代码来源:ChangesetXMLExporter.class.php

示例2: format

 public function format(Tracker_Artifact_Changeset $changeset)
 {
     return array('id' => $changeset->getId(), 'submitted_by' => $changeset->getSubmittedBy(), 'submitted_on' => date('c', $changeset->getSubmittedOn()), 'email' => $changeset->getEmail(), 'html' => $this->getChangeContentForJson($changeset));
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:4,代码来源:Tracker_Artifact_ChangesetJsonFormatter.class.php

示例3: after

 /**
  * @see Transition_PostAction::after()
  * @param Tracker_Artifact_Changeset $changeset
  */
 public function after(Tracker_Artifact_Changeset $changeset)
 {
     if (!$this->isDefined()) {
         return;
     }
     $build_parameters = array(self::BUILD_PARAMETER_USER => $changeset->getSubmittedBy(), self::BUILD_PARAMETER_PROJECT_ID => $changeset->getArtifact()->getTracker()->getProject()->getID(), self::BUILD_PARAMETER_ARTIFACT_ID => $changeset->getArtifact()->getId(), self::BUILD_PARAMETER_TRACKER_ID => $changeset->getArtifact()->getTracker()->getId(), self::BUILD_PARAMETER_TRIGGER_FIELD_VALUE => $this->getTransition()->getFieldValueTo()->getLabel());
     try {
         $this->ci_client->launchJobBuild($this->job_url, $build_parameters);
         $feedback = $GLOBALS['Language']->getText('workflow_postaction', 'ci_build_succeeded', array($this->job_url));
         $GLOBALS['Response']->addFeedback('info', $feedback);
     } catch (Jenkins_ClientUnableToLaunchBuildException $exception) {
         $GLOBALS['Response']->addFeedback('error', $exception->getMessage());
     }
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:18,代码来源:Transition_PostAction_CIBuild.class.php

示例4: author_updated

 public function author_updated()
 {
     $user_str = UserHelper::instance()->getDisplayNameFromUserId($this->changeset->getSubmittedBy());
     return $GLOBALS['Language']->getText('plugin_tracker', 'artifact_update_popup_title', array($user_str));
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:5,代码来源:Tracker_Artifact_ChangesetJsonPresenter.class.php

示例5: getFullRESTValue

 public function getFullRESTValue(PFUser $user, Tracker_Artifact_Changeset $changeset)
 {
     $value = new Tracker_FormElement_Field_List_Bind_UsersValue($changeset->getSubmittedBy());
     if ($changeset->getArtifact()->wasLastModifiedByAnonymous()) {
         $submitted_by_value = $value->getFullRESTValueForAnonymous($changeset);
     } else {
         $submitted_by_value = $value->getFullRESTValue($this);
     }
     $classname_with_namespace = 'Tuleap\\Tracker\\REST\\Artifact\\ArtifactFieldValueFullRepresentation';
     $artifact_field_value_full_representation = new $classname_with_namespace();
     $artifact_field_value_full_representation->build($this->getId(), Tracker_FormElementFactory::instance()->getType($this), $this->getLabel(), $submitted_by_value);
     return $artifact_field_value_full_representation;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:13,代码来源:Tracker_FormElement_Field_LastModifiedBy.class.php


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