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


PHP Tracker_Artifact::getTrackerId方法代碼示例

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


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

示例1: getColumnIdOfKanbanItem

 public function getColumnIdOfKanbanItem(Tracker_Artifact $artifact)
 {
     $row = $this->item_dao->getColumnIdOfKanbanItem($artifact->getTrackerId(), $artifact->getId())->getRow();
     if (!$row) {
         return null;
     }
     return (int) $row['bindvalue_id'];
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:8,代碼來源:KanbanItemManager.class.php

示例2: isArtifactInParentTracker

 private function isArtifactInParentTracker(Tracker_Artifact $linked_artifact)
 {
     $linked_artifact_tracker_id = $linked_artifact->getTrackerId();
     $parent_tracker = $this->tracker->getParent();
     if ($parent_tracker) {
         return $parent_tracker->getId() == $linked_artifact_tracker_id;
     }
     return false;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:9,代碼來源:CreateInPlaceRenderer.class.php

示例3: parentMilestoneHasItemTrackerInItsBacklogTracker

 /**
  * @return boolean
  */
 private function parentMilestoneHasItemTrackerInItsBacklogTracker(Planning_Milestone $parent_milestone, Tracker_Artifact $artifact_added)
 {
     $backlog_trackers = $this->getBacklogTrackers($parent_milestone);
     foreach ($backlog_trackers as $backlog_tracker) {
         if ($backlog_tracker->getId() === $artifact_added->getTrackerId()) {
             return true;
         }
     }
     return false;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:13,代碼來源:MilestoneParentLinker.php

示例4: getBaseArtifact

 private function getBaseArtifact(Tracker_Artifact $artifact, array &$properties)
 {
     $last_changeset = $artifact->getLastChangeset();
     $last_changeset_id = $last_changeset ? $last_changeset->getId() : -1;
     $properties = array('id' => $artifact->getId(), 'group_id' => $artifact->getTracker()->getGroupId(), 'tracker_id' => $artifact->getTrackerId(), 'last_changeset_id' => $last_changeset_id);
     $this->artifact_properties_extractor->extractTrackerUserGroups($artifact, $properties);
     $this->artifact_properties_extractor->extractArtifactUserGroups($artifact, $properties);
     if ($last_changeset) {
         $this->artifact_properties_extractor->extractArtifactTextFields($artifact, $last_changeset, $properties);
         $this->artifact_properties_extractor->extractArtifactDateFields($artifact, $last_changeset, $properties);
     }
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:12,代碼來源:RequestTrackerDataFactory.class.php

示例5: getFields

 public function getFields(Tracker_Artifact $artifact)
 {
     $diplayed_fields = array();
     $tracker_id = $artifact->getTrackerId();
     foreach ($this->displayed_fields as $diplayed_field_name) {
         $field = $this->form_element_factory->getUsedFieldByNameForUser($tracker_id, $diplayed_field_name, $this->user_manager->getCurrentUser());
         if ($field) {
             $diplayed_fields[] = $field;
         }
     }
     return $diplayed_fields;
 }
開發者ID:nterray,項目名稱:tuleap,代碼行數:12,代碼來源:CardFields.class.php

示例6: indexArtifactUpdate

 /**
  * Index an artifact
  *
  * @param Tracker_Artifact $artifact The artifact to index
  */
 public function indexArtifactUpdate(Tracker_Artifact $artifact)
 {
     $this->initializeMapping($artifact->getTracker());
     $this->logger->debug('[Tracker] Elasticsearch index artifact #' . $artifact->getId() . ' in tracker #' . $artifact->getTrackerId());
     $this->client->index($artifact->getTrackerId(), $artifact->getId(), $this->tracker_data_factory->getFormattedArtifact($artifact));
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:11,代碼來源:FullTextSearchTrackerActions.class.php

示例7: queueArtifactDelete

 public function queueArtifactDelete(Tracker_Artifact $artifact)
 {
     if ($this->plugin->isAllowed($artifact->getTracker()->getGroupId())) {
         $this->system_event_manager->createEvent(SystemEvent_FULLTEXTSEARCH_TRACKER_ARTIFACT_DELETE::NAME, $this->implodeParams(array($artifact->getId(), $artifact->getTrackerId())), SystemEvent::PRIORITY_MEDIUM, SystemEvent::OWNER_APP);
     }
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:6,代碼來源:TrackerSystemEventManager.class.php

示例8: save

 public function save(Tracker_Artifact $artifact)
 {
     return $this->getDao()->save($artifact->getId(), $artifact->getTrackerId(), $artifact->useArtifactPermissions());
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:4,代碼來源:Tracker_ArtifactFactory.class.php

示例9: getArtifactInfo

 /**
  * Return artifact info from artifact object
  *
  * If there is already an artifact info available in DB result, use this one
  * instead of re-creating it (artifact_info from DB contains extra informations
  * like the "artifact link column value")
  *
  * @param Tracker_Artifact $artifact
  * @param array $artifacts_info
  *
  * @return array
  */
 private function getArtifactInfo(Tracker_Artifact $artifact, array $artifacts_info)
 {
     if (isset($artifacts_info[$artifact->getId()])) {
         return $artifacts_info[$artifact->getId()];
     } else {
         return array('id' => $artifact->getId(), 'last_changeset_id' => $artifact->getLastChangeset()->getId(), 'tracker_id' => $artifact->getTrackerId());
     }
 }
開發者ID:nickl-,項目名稱:tuleap,代碼行數:20,代碼來源:Sorter.class.php


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