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


PHP Tracker::getGroupId方法代码示例

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


在下文中一共展示了Tracker::getGroupId方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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, 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

示例3: getUGroupList

 private function getUGroupList(Tracker $tracker)
 {
     $ugroup_list = array();
     $ugroups_permissions = plugin_tracker_permission_get_tracker_ugroups_permissions($tracker->getGroupId(), $tracker->getId());
     ksort($ugroups_permissions);
     reset($ugroups_permissions);
     foreach ($ugroups_permissions as $ugroup_permissions) {
         $ugroup = $ugroup_permissions['ugroup'];
         $permissions = $ugroup_permissions['permissions'];
         if ($ugroup['id'] != ProjectUGroup::PROJECT_ADMIN) {
             $ugroup_list[] = new Tracker_Permission_PermissionUgroupPresenter($ugroup['id'], $ugroup['name'], isset($ugroup['link']) ? $ugroup['link'] : '', $this->getPermissionTypeList($ugroup['id'], $permissions));
         }
     }
     return $ugroup_list;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:15,代码来源:PermissionPresenterBuilder.class.php

示例4: queueTrackerReindexation

 public function queueTrackerReindexation(Tracker $tracker)
 {
     $project_id = $tracker->getGroupId();
     if ($this->plugin->isAllowed($project_id)) {
         $this->system_event_manager->createEvent(SystemEvent_FULLTEXTSEARCH_TRACKER_REINDEX::NAME, $this->implodeParams(array($tracker->getId())), SystemEvent::PRIORITY_LOW, SystemEvent::OWNER_APP);
     }
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:TrackerSystemEventManager.class.php

示例5: getTrackers

 /**
  * @return array of Tracker
  */
 public function getTrackers(Tracker $tracker)
 {
     $trackers = $this->tracker_factory->getTrackersByGroupId($tracker->getGroupId());
     return array_diff($trackers, array($tracker));
 }
开发者ID:nterray,项目名称:tuleap,代码行数:8,代码来源:TrackerMappingFactory.class.php

示例6: postCreateActions

 /**
  * Do all stuff which have to be done after a tracker creation, like reference creation for example
  *
  * @param Tracker $tracker The tracker
  *
  * @return void
  */
 protected function postCreateActions(Tracker $tracker)
 {
     // Create corresponding reference
     $ref = new Reference(0, strtolower($tracker->getItemName()), $GLOBALS['Language']->getText('project_reference', 'reference_art_desc_key') . ' - ' . $tracker->getName(), TRACKER_BASE_URL . '/?aid=$1&group_id=$group_id', 'P', 'plugin_tracker', Tracker_Artifact::REFERENCE_NATURE, '1', $tracker->getGroupId());
     // Force reference creation because default trackers use reserved keywords
     $this->getReferenceManager()->createReference($ref, true);
 }
开发者ID:nterray,项目名称:tuleap,代码行数:14,代码来源:TrackerFactory.class.php

示例7: userCanViewTracker

 public function userCanViewTracker(PFUser $user, Tracker $tracker)
 {
     if ($user->isSuperUser()) {
         return true;
     }
     if ($tracker->userIsAdmin($user)) {
         return true;
     }
     $project = $tracker->getProject();
     if ($this->userIsRestrictedAndNotMemberOfProject($user, $project) || $this->userIsNotMemberOfPrivateProject($user, $project)) {
         return false;
     }
     foreach ($tracker->getPermissionsByUgroupId() as $ugroup_id => $permission_types) {
         if ($user->isMemberOfUGroup($ugroup_id, $tracker->getGroupId())) {
             return true;
         }
     }
     return false;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:19,代码来源:PermissionChecker.class.php

示例8: addTopBacklogPlanningEntry

 private function addTopBacklogPlanningEntry($selected_milestone_id, Tracker $backlog_tracker, PFUser $user)
 {
     $top_planning = $this->planning_factory->getVirtualTopPlanning($user, $backlog_tracker->getGroupId());
     $backlog_trackers_ids = $top_planning->getBacklogTrackersIds();
     if (in_array($backlog_tracker->getId(), $backlog_trackers_ids)) {
         return $this->getOptionForSelectBox($selected_milestone_id, self::TOP_BACKLOG_IDENTIFIER, self::TOP_BACKLOG_OPTION_ENTRY);
     }
     return;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:9,代码来源:MilestoneReportCriterionOptionsProvider.class.php

示例9: getPermissionSetter

 private function getPermissionSetter()
 {
     return new Tracker_Permission_PermissionSetter($this->tracker, plugin_tracker_permission_get_tracker_ugroups_permissions($this->tracker->getGroupId(), $this->tracker->getId()), PermissionsManager::instance());
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:4,代码来源:PermissionController.class.php

示例10: getPossibleChildren

 /**
  * @param Tracker $tracker
  *
  * @return Children trackers of the given tracker.
  */
 public function getPossibleChildren($tracker)
 {
     $project_id = $tracker->getGroupId();
     $trackers = $this->getTrackersByGroupId($project_id);
     unset($trackers[$tracker->getId()]);
     return $trackers;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:TrackerFactory.class.php

示例11: getHierarchy

 /**
  * @return TreeNode
  */
 public function getHierarchy(Tracker $tracker)
 {
     $project_trackers = $this->getProjectTrackers($tracker->getProject());
     $parent_child_dar = $this->dao->searchParentChildAssociations($tracker->getGroupId());
     $children_map = $this->getChildrenMapFromDar($parent_child_dar, $project_trackers);
     $root = new TreeNode();
     $root->setId('root');
     $this->buildHierarchyChildrenOf($root, $children_map, $project_trackers, $tracker);
     return $root;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:13,代码来源:HierarchicalTrackerFactory.class.php

示例12: getMatchingIdsInDb

 protected function getMatchingIdsInDb(DataAccessObject $dao, PermissionsManager $permissionManager, Tracker $tracker, PFUser $user, array $criteria)
 {
     $dump_criteria = array();
     foreach ($criteria as $c) {
         $dump_criteria[$c->field->getName()] = $c->field->getCriteriaValue($c);
     }
     $dao->logStart(__METHOD__, json_encode(array('user' => $user->getUserName(), 'project' => $tracker->getGroupId(), 'query' => $dump_criteria, 'trackers' => array($tracker->getId()))));
     $matching_ids = array();
     $group_id = $tracker->getGroupId();
     $permissions = $permissionManager->getPermissionsAndUgroupsByObjectid($tracker->getId());
     $contributor_field = $tracker->getContributorField();
     $contributor_field_id = $contributor_field ? $contributor_field->getId() : null;
     $additional_from = array();
     $additional_where = array();
     foreach ($criteria as $c) {
         if ($f = $c->getFrom()) {
             $additional_from[] = $f;
         }
         if ($w = $c->getWhere()) {
             $additional_where[] = $w;
         }
     }
     $matching_ids['id'] = '';
     $matching_ids['last_changeset_id'] = '';
     $matching_ids_result = $dao->searchMatchingIds($group_id, $tracker->getId(), $additional_from, $additional_where, $user, $permissions, $contributor_field_id);
     if ($matching_ids_result) {
         $matching_ids = $matching_ids_result->getRow();
         if ($matching_ids) {
             if (substr($matching_ids['id'], -1) === ',') {
                 $matching_ids['id'] = substr($matching_ids['id'], 0, -1);
             }
             if (substr($matching_ids['last_changeset_id'], -1) === ',') {
                 $matching_ids['last_changeset_id'] = substr($matching_ids['last_changeset_id'], 0, -1);
             }
         }
     }
     $nb_matching = $matching_ids['id'] ? substr_count($matching_ids['id'], ',') + 1 : 0;
     $dao->logEnd(__METHOD__, $nb_matching);
     return $matching_ids;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:40,代码来源:Tracker_Report.class.php


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