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


PHP Tracker类代码示例

本文整理汇总了PHP中Tracker的典型用法代码示例。如果您正苦于以下问题:PHP Tracker类的具体用法?PHP Tracker怎么用?PHP Tracker使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: __construct

 /**
  * @return Reference
  */
 public function __construct(Tracker $tracker, $keyword)
 {
     $base_id = 0;
     $visibility = 'P';
     $is_used = 1;
     parent::__construct($base_id, $keyword, $GLOBALS['Language']->getText('project_reference', 'reference_art_desc_key') . ' - ' . $tracker->getName(), TRACKER_BASE_URL . '/?aid=$1&group_id=$group_id', $visibility, trackerPlugin::SERVICE_SHORTNAME, Tracker_Artifact::REFERENCE_NATURE, $is_used, $tracker->getGroupId());
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:Reference.php

示例2: __construct

 public function __construct(Tracker $tracker)
 {
     $this->tracker = $tracker;
     foreach ($this->existing_colors as $color) {
         $this->colors[] = array('color' => $color, 'selected' => $color === $this->tracker->getColor());
     }
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:ColorPresenterCollection.class.php

示例3: __construct

 public function __construct(Tracker $tracker, array $stored_ugroups_permissions, PermissionsManager $permissions_manager)
 {
     $this->group_id = $tracker->getGroupId();
     $this->atid = $tracker->getId();
     $this->tracker = $tracker;
     $this->stored_ugroups_permissions = $stored_ugroups_permissions;
     $this->permissions_manager = $permissions_manager;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:PermissionSetter.class.php

示例4: getFieldByName

 private function getFieldByName(Tracker $tracker, $field_name)
 {
     $field = $this->formelement_factory->getUsedFieldByName($tracker->getId(), $field_name);
     if (!$field) {
         throw new Tracker_FormElement_InvalidFieldException("Field {$field_name} does not exist in the tracker");
     }
     return $field;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:ArtifactValidator.class.php

示例5: build

 /**
  * @return \Tracker 
  */
 public function build()
 {
     $tracker = new Tracker($this->id, $this->project_id, $this->name, null, $this->item_name, null, null, null, null, null, null, null);
     if ($this->project) {
         $tracker->setProject($this->project);
     }
     return $tracker;
 }
开发者ID:nickl-,项目名称:tuleap,代码行数:11,代码来源:aTracker.php

示例6: getListOfInvolvedStaticUgroups

 /**
  * @return ProjectUGroup[]
  */
 public function getListOfInvolvedStaticUgroups(Tracker $template_tracker)
 {
     $project = $template_tracker->getProject();
     $ugroups = array();
     foreach ($this->permissions_dao->getAuthorizedStaticUgroupIds($template_tracker->getId()) as $id) {
         $ugroups[] = $this->ugroup_manager->getUGroup($project, $id);
     }
     return $ugroups;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:UgroupPermissionsGoldenRetriever.class.php

示例7: getColumnsFromDao

 /**
  * @return Cardwall_OnTop_Config_ColumnCollection
  */
 private function getColumnsFromDao(Tracker $tracker)
 {
     $columns = new Cardwall_OnTop_Config_ColumnFreestyleCollection();
     foreach ($this->dao->searchColumnsByTrackerId($tracker->getId()) as $row) {
         list($bgcolor, $fgcolor) = $this->getColumnColorsFromRow($row);
         $columns[] = new Cardwall_Column($row['id'], $row['label'], $bgcolor, $fgcolor);
     }
     return $columns;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:ColumnFactory.class.php

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

示例9: itHasAllTriggeringFields

 public function itHasAllTriggeringFields()
 {
     $child_tracker = aTracker()->withId(200)->build();
     $this->target_tracker->setChildren(array($child_tracker));
     expect($this->formelement_factory)->getUsedStaticSbFields()->count(2);
     expect($this->formelement_factory)->getUsedStaticSbFields($child_tracker)->at(1);
     stub($this->formelement_factory)->getUsedStaticSbFields()->returnsEmptyDar();
     $this->factory->getForTracker($this->target_tracker);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:9,代码来源:RulesBuilderFactoryTest.php

示例10: getTrackerMapping

 public function getTrackerMapping(Tracker $tracker)
 {
     $tracker_id = $tracker->getId();
     $mapping_data = array($tracker_id => array('properties' => array('id' => array('type' => 'integer'), 'group_id' => array('type' => 'integer'), 'tracker_id' => array('type' => 'integer'), 'last_changeset_id' => array('type' => 'integer'), ElasticSearch_1_2_ArtifactPropertiesExtractor::LAST_UPDATE_PROPERTY => array('type' => 'date', 'format' => 'date_time_no_millis'), 'followup_comments' => array('properties' => array('user_id' => array('type' => 'integer'), 'date_added' => array('type' => 'date', 'format' => 'date_time_no_millis'), 'comment' => array('type' => 'string'))))));
     $this->addStandardTrackerPermissionsMetadata($mapping_data[$tracker_id]['properties']);
     $this->addStandardArtifactPermissionsMetadata($mapping_data[$tracker_id]['properties']);
     $this->artifact_properties_extractor->extractTrackerFields($tracker, $mapping_data);
     return $mapping_data;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:9,代码来源:RequestTrackerDataFactory.class.php

示例11: export

 public function export(Tracker $tracker, SimpleXMLElement $xml_content, PFUser $user, ZipArchive $archive)
 {
     $artifacts_node = $xml_content->addChild('artifacts');
     $all_artifacts = $this->artifact_factory->getArtifactsByTrackerId($tracker->getId());
     $this->checkThreshold(count($all_artifacts));
     foreach ($all_artifacts as $artifact) {
         $artifact->exportToXML($artifacts_node, $user, $archive);
     }
     $this->rng_validator->validate($artifacts_node, realpath(dirname(TRACKER_BASE_DIR) . self::ARTIFACTS_RNG_PATH));
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:10,代码来源:XMLExport.php

示例12: getMatchingIdsForTopBacklog

 private function getMatchingIdsForTopBacklog(Planning_VirtualTopMilestone $milestone, Tracker $backlog_tracker, PFUser $user)
 {
     $strategy_unassigned = $this->strategy_factory->getSelfBacklogStrategy($milestone);
     $backlog_items = $this->backlog_item_collection_factory->getUnassignedOpenCollection($user, $milestone, $strategy_unassigned, false);
     foreach ($backlog_items as $backlog_item) {
         if ($backlog_item->getArtifact()->getTrackerId() == $backlog_tracker->getId()) {
             $this->backlog_ids[$backlog_item->getArtifact()->getId()] = true;
         }
     }
     return $this->backlog_ids;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:SubBacklogItemProvider.class.php

示例13: getStatusValuesIndexedByLabel

 private function getStatusValuesIndexedByLabel(Tracker $mapping_tracker)
 {
     $values = array();
     $field = $mapping_tracker->getStatusField();
     if ($field) {
         foreach ($field->getVisibleValuesPlusNoneIfAny() as $value) {
             $values[$value->getLabel()] = $value;
         }
     }
     return $values;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:ValueMappingFactory.class.php

示例14: checkPermissionValidity

 private function checkPermissionValidity(Tracker_Permission_PermissionRequest $request, Tracker $tracker)
 {
     if ($request->containsPermissionType(Tracker_Permission_Command::PERMISSION_ASSIGNEE) != null && $tracker->getContributorField() === null) {
         $GLOBALS['Response']->addFeedback(Feedback::ERROR, $GLOBALS['Language']->getText('plugin_tracker_admin_permissions', 'no_assignee_semantic', array(TRACKER_BASE_URL . '/?' . http_build_query(array('func' => 'admin-semantic', 'tracker' => $tracker->getId())), $GLOBALS['Language']->getText('plugin_tracker_admin_semantic', 'contributor_label'))), CODENDI_PURIFIER_DISABLED);
         return false;
     }
     if ($request->getPermissionType(ProjectUGroup::PROJECT_ADMIN)) {
         return false;
     }
     return true;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:PermissionManager.class.php

示例15: display

 public function display()
 {
     $tracker = new Tracker();
     $history = $tracker->get_recently_viewed($GLOBALS['current_user']->id, array('Emails', 'EmailTemplates'));
     foreach ($history as $key => $row) {
         $history[$key]['item_summary_short'] = getTrackerSubstring($row['item_summary']);
         $history[$key]['image'] = SugarThemeRegistry::current()->getImage($row['module_name'], 'border="0" align="absmiddle" alt="' . $row['item_summary'] . '"');
     }
     $this->ss->assign('LAST_VIEWED', $history);
     $this->ss->display('include/MVC/View/tpls/modulelistmenu.tpl');
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:11,代码来源:view.modulelistmenu.php


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