當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tracker_Artifact_Changeset::getSubmittedOn方法代碼示例

本文整理匯總了PHP中Tracker_Artifact_Changeset::getSubmittedOn方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tracker_Artifact_Changeset::getSubmittedOn方法的具體用法?PHP Tracker_Artifact_Changeset::getSubmittedOn怎麽用?PHP Tracker_Artifact_Changeset::getSubmittedOn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Tracker_Artifact_Changeset的用法示例。


在下文中一共展示了Tracker_Artifact_Changeset::getSubmittedOn方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: exportFullHistory

 public function exportFullHistory(SimpleXMLElement $artifact_xml, Tracker_Artifact_Changeset $changeset)
 {
     $changeset_xml = $artifact_xml->addChild('changeset');
     $this->user_xml_exporter->exportUserByUserId($changeset->getSubmittedBy(), $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:uniteddiversity,項目名稱:tuleap,代碼行數:12,代碼來源: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: getChangesetValue

 /**
  * Get the value of this field
  *
  * @param Tracker_Artifact_Changeset $changeset   The changeset (needed in only few cases like 'lud' field)
  * @param int                        $value_id    The id of the value
  * @param boolean                    $has_changed If the changeset value has changed from the rpevious one
  *
  * @return Tracker_Artifact_ChangesetValue or null if not found
  */
 public function getChangesetValue($changeset, $value_id, $has_changed)
 {
     $changeset_value = new Tracker_Artifact_ChangesetValue_Date($value_id, $this, $has_changed, $changeset->getSubmittedOn());
     return $changeset_value;
 }
開發者ID:nterray,項目名稱:tuleap,代碼行數:14,代碼來源:Tracker_FormElement_Field_LastUpdateDate.class.php

示例4: time

 public function time()
 {
     return DateHelper::timeAgoInWords($this->changeset->getSubmittedOn());
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:4,代碼來源:Tracker_Artifact_ChangesetJsonPresenter.class.php

示例5: getFullRESTValue

 public function getFullRESTValue(PFUser $user, Tracker_Artifact_Changeset $changeset)
 {
     $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(), date('c', $changeset->getSubmittedOn()));
     return $artifact_field_value_full_representation;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:7,代碼來源:Tracker_FormElement_Field_LastUpdateDate.class.php


注:本文中的Tracker_Artifact_Changeset::getSubmittedOn方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。