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


PHP Tracker_Artifact::getValue方法代碼示例

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


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

示例1: getCurrentComputedValue

 /**
  * @param User             $user
  * @param Tracker_Artifact $artifact
  * 
  * @return mixed
  */
 private function getCurrentComputedValue(Tracker_Artifact $artifact)
 {
     $value = $artifact->getValue($this);
     if ($value) {
         return $value->getValue();
     }
     return null;
 }
開發者ID:nickl-,項目名稱:tuleap,代碼行數:14,代碼來源:Tracker_FormElement_Field_Numeric.class.php

示例2: isSetForArtifact

 /**
  * Return true if given artifact has the same value than current object
  *
  * @param Tracker_Artifact $artifact
  * @return boolean
  */
 public function isSetForArtifact(Tracker_Artifact $artifact)
 {
     $artifact_value = $artifact->getValue($this->getField());
     if ($artifact_value && $artifact_value->getValue() == array($this->getValue()->getId())) {
         return true;
     }
     return false;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:14,代碼來源:FieldValue.class.php

示例3: getAssigneeIds

 private function getAssigneeIds(Tracker_Artifact $artifact)
 {
     $contributor_field = $artifact->getTracker()->getContributorField();
     if ($contributor_field) {
         $assignee = $artifact->getValue($contributor_field);
         if ($assignee) {
             return $assignee->getValue();
         }
     }
     return array();
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:11,代碼來源:PermissionRetrieveAssignee.class.php

示例4: testGetValue

 function testGetValue()
 {
     $changeset = new MockTracker_Artifact_Changeset();
     $field = new MockTracker_FormElement_Field_Date();
     $value = new MockTracker_Artifact_ChangesetValue_Date();
     $changeset->setReturnReference('getValue', $value);
     $id = $tracker_id = $use_artifact_permissions = $submitted_by = $submitted_on = '';
     $artifact = new Tracker_Artifact($id, $tracker_id, $submitted_by, $submitted_on, $use_artifact_permissions);
     $this->assertEqual($artifact->getValue($field, $changeset), $value);
 }
開發者ID:rinodung,項目名稱:tuleap,代碼行數:10,代碼來源:Tracker_ArtifactTest.php

示例5: getLastChangesetValue

 /**
  * Get the last ChangesetValue of the field
  *
  * @param Tracker_Artifact
  *
  * @return Tracker_Artifact_ChangesetValue
  */
 public function getLastChangesetValue(Tracker_Artifact $artifact)
 {
     return $artifact->getValue($this);
 }
開發者ID:pdaniel-frk,項目名稱:tuleap,代碼行數:11,代碼來源:Tracker_FormElement_Field.class.php

示例6: getCurrentValue

 private function getCurrentValue(Tracker_Artifact $artifact)
 {
     $changeset_value = $artifact->getValue($this);
     if ($changeset_value) {
         $values = $this->getBind()->getNumericValues($changeset_value);
         if (!empty($values)) {
             return $values[0];
         }
     }
     return null;
 }
開發者ID:amanikamail,項目名稱:tuleap,代碼行數:11,代碼來源:Tracker_FormElement_Field_Selectbox.class.php

示例7: getCapacity

 /**
  * @param Tracker_Artifact $artifact
  *
  * @return null|int
  */
 public function getCapacity(Tracker_Artifact $artifact)
 {
     $field = $this->getCapacityField();
     if (!$field) {
         return null;
     }
     $changeset_value = $artifact->getValue($field);
     if (!$changeset_value) {
         return 0;
     }
     return $changeset_value->getValue();
 }
開發者ID:rinodung,項目名稱:tuleap,代碼行數:17,代碼來源:Tracker_FormElement_Field_Burndown.class.php


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