当前位置: 首页>>代码示例>>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;未经允许,请勿转载。