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


PHP Tracker_Artifact::getId方法代码示例

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


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

示例1: notAlreadyComputed

 private function notAlreadyComputed(Tracker_Artifact $artifact, &$computed_artifact_ids)
 {
     if (!isset($computed_artifact_ids[$artifact->getId()])) {
         $computed_artifact_ids[$artifact->getId()] = true;
         return true;
     }
     return false;
 }
开发者ID:nterray,项目名称:tuleap,代码行数:8,代码来源:Tracker_FormElement_Field_Computed.class.php

示例2: getParentNode

 private function getParentNode(Tracker_Artifact $parent, array &$cache_alreaydy_built_parents)
 {
     if (!isset($cache_alreaydy_built_parents[$parent->getId()])) {
         $parent_node = new TreeNode();
         $parent_node->setId($parent->getId());
         $parent_node->setObject($parent);
         $cache_alreaydy_built_parents[$parent->getId()] = $parent_node;
     }
     return $cache_alreaydy_built_parents[$parent->getId()];
 }
开发者ID:nterray,项目名称:tuleap,代码行数:10,代码来源:GroupByParentsVisitor.class.php

示例3: getCachedRawMailByChangesetsForArtifact

 private function getCachedRawMailByChangesetsForArtifact(Tracker_Artifact $artifact)
 {
     if (!isset($this->cache[$artifact->getId()])) {
         $this->cache[$artifact->getId()] = array();
         foreach ($this->dao->searchByArtifactId($artifact->getId()) as $row) {
             $this->cache[$artifact->getId()][$row['changeset_id']] = $row['raw_mail'];
         }
     }
     return $this->cache[$artifact->getId()];
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:IncomingMailGoldenRetriever.php

示例4: fetchNewArtifactForm

 private function fetchNewArtifactForm(Codendi_Request $request, PFUser $current_user)
 {
     $html = '';
     $html .= '<input type="hidden" name="link-artifact-id" value="' . $this->source_artifact->getId() . '" />';
     if ($request->get('immediate')) {
         $html .= '<input type="hidden" name="immediate" value="1" />';
     }
     $html .= $this->fetchFormElements($request, $current_user);
     $html .= '<input class="btn btn-primary" type="submit" id="tracker_artifact_submit" value="' . $GLOBALS['Language']->getText('global', 'btn_submit') . '" />';
     return $html;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:SubmitOverlayRenderer.class.php

示例5: 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

示例6: getCurrentComputedValue

 /**
  * @param PFUser             $user
  * @param Tracker_Artifact $artifact
  * 
  * @return mixed
  */
 private function getCurrentComputedValue(Tracker_Artifact $artifact)
 {
     $row = $this->getValueDao()->getLastValue($artifact->getId(), $this->getId());
     if ($row) {
         return $row['value'];
     }
     return 0;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:14,代码来源:Tracker_FormElement_Field_Numeric.class.php

示例7: createChangesetId

 private function createChangesetId(Tracker_Artifact $artifact, PFUser $submitter, $submitted_on)
 {
     $email = null;
     if ($submitter->isAnonymous()) {
         $email = $submitter->getEmail();
     }
     return $this->changeset_dao->create($artifact->getId(), $submitter->getId(), $email, $submitted_on);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:InitialChangesetCreatorBase.class.php

示例8: getNewChangesetsFormattedForJson

 /**
  * Get all changesets in a format ready for json conversion
  *
  * @param Tracker_Artifact $artifact
  * @param Integer $changeset_id
  * @return array
  */
 public function getNewChangesetsFormattedForJson(Tracker_Artifact $artifact, $changeset_id)
 {
     $changesets = array();
     foreach ($this->dao->searchChangesetNewerThan($artifact->getId(), $changeset_id) as $row) {
         $changesets[] = $this->json_formatter->format($this->getChangesetFromRow($artifact, $row));
     }
     return $changesets;
 }
开发者ID:amanikamail,项目名称:tuleap,代码行数:15,代码来源:Tracker_Artifact_ChangesetFactory.class.php

示例9: exportFullHistory

 /**
  * Add to $artifacts_xml the xml structure of an artifact
  */
 public function exportFullHistory(SimpleXMLElement $artifacts_xml, Tracker_Artifact $artifact)
 {
     $artifact_xml = $artifacts_xml->addChild('artifact');
     $artifact_xml->addAttribute('id', $artifact->getId());
     foreach ($artifact->getChangesets() as $changeset) {
         $this->changeset_exporter->exportFullHistory($artifact_xml, $changeset);
     }
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:ArtifactXMLExporter.php

示例10: linkArtifact

 private function linkArtifact(PFUser $current_user, Tracker_Artifact $new_artifact)
 {
     $artifact_link_id = $this->request->get('artifact-link-id');
     $source_artifact = $this->tracker_artifact_factory->getArtifactById($artifact_link_id);
     if (!$source_artifact) {
         return;
     }
     $source_artifact->linkArtifact($new_artifact->getId(), $current_user);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:9,代码来源:CreateArtifactFromModal.class.php

示例11: fetchArtifactInformations

 private function fetchArtifactInformations(Tracker_Artifact $artifact)
 {
     $html = "";
     $html_purifier = Codendi_HTMLPurifier::instance();
     $artifact_id = $html_purifier->purify($artifact->getId());
     $changeset_id = $html_purifier->purify($artifact->getLastChangeset()->getId());
     $html .= '<input type="hidden" id="artifact_informations" data-artifact-id="' . $artifact_id . '" data-changeset-id="' . $changeset_id . '">';
     return $html;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:9,代码来源:EditAbstractRenderer.class.php

示例12: recursivelyFindChildrenBelongingToTracker

 private function recursivelyFindChildrenBelongingToTracker(Tracker_Artifact $source_artifact, Tracker $expected_tracker, User $user, array $hierarchy)
 {
     $artifacts = array();
     $children = $source_artifact->getLinkedArtifactsOfHierarchy($user);
     if (isset($hierarchy[$source_artifact->getId()])) {
         array_walk($children, array($this, 'keepOnlyArtifactsBelongingToParentTracker'), $hierarchy[$source_artifact->getId()]);
         array_filter($children);
     }
     if ($children) {
         foreach ($children as $child) {
             if ($child->getTracker() == $expected_tracker) {
                 $artifacts[] = $child;
             } else {
                 $artifacts = array_merge($artifacts, $this->recursivelyFindChildrenBelongingToTracker($child, $expected_tracker, $user, $hierarchy));
             }
         }
     }
     return $artifacts;
 }
开发者ID:nterray,项目名称:tuleap,代码行数:19,代码来源:SubChildrenBelongingToTrackerCommand.class.php

示例13: __construct

 public function __construct(Tracker_Artifact $artifact)
 {
     $this->id = $artifact->getId();
     $this->title = $artifact->getTitle();
     $this->url = $artifact->getUri();
     $this->artifact = $artifact;
     $this->color = $this->artifact->getTracker()->getColor();
     $this->type = $this->artifact->getTracker()->getName();
     $this->short_type = $this->artifact->getTracker()->getItemName();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:BacklogItem.class.php

示例14: getSwimlines

 /**
  * Retrieves the artifacts planned for the given milestone artifact.
  *
  * @param PFUser $user
  * @param Tracker_Artifact $milestone_artifact
  * @param Cardwall_OnTop_Config_ColumnCollection $columns
  *
  * @return Cardwall_Swimline[]
  */
 private function getSwimlines(PFUser $user, Tracker_Artifact $milestone_artifact, Cardwall_OnTop_Config_ColumnCollection $columns)
 {
     $swimlines = array();
     foreach ($this->dao->getBacklogArtifacts($milestone_artifact->getId()) as $row) {
         $swimline_artifact = $this->artifact_factory->getInstanceFromRow($row);
         if ($swimline_artifact->userCanView($user)) {
             $swimlines[] = $this->buildSwimlineForArtifact($user, $swimline_artifact, $columns);
         }
     }
     return $swimlines;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:20,代码来源:PaneBoardBuilder.class.php

示例15: __construct

 /**
  * @param Tracker_Artifact        $artifact The child
  * @param Tracker_Artifact        $parent   The parent
  * @param Tracker_Semantic_Status $semantic The status semantic used by the corresponding tracker
  */
 public function __construct(Tracker_Artifact $artifact, Tracker_Artifact $parent, Tracker_Semantic_Status $semantic)
 {
     $base_url = get_server_url();
     $this->xref = $artifact->getXRef();
     $this->title = $artifact->getTitle();
     $this->id = $artifact->getId();
     $this->url = $base_url . $artifact->getUri();
     $this->status = $semantic->getStatus($artifact);
     $this->parent_id = $parent->getId();
     $this->has_children = $artifact->hasChildren();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:16,代码来源:ArtifactChildPresenter.class.php


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