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


PHP Planning::getGroupId方法代码示例

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


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

示例1: exportPermissions

 private function exportPermissions(SimpleXMLElement $planning_node, Planning $planning)
 {
     $ugroups = $this->planning_permissions_manager->getGroupIdsWhoHasPermissionOnPlanning($planning->getId(), $planning->getGroupId(), PlanningPermissionsManager::PERM_PRIORITY_CHANGE);
     if (!empty($ugroups)) {
         foreach ($ugroups as $ugroup_id) {
             if (($ugroup = array_search($ugroup_id, $GLOBALS['UGROUPS'])) !== false && $ugroup_id < 100) {
                 if (!isset($planning_node->permissions)) {
                     $permission_nodes = $planning_node->addChild(self::NODE_PERMISSIONS);
                 }
                 $permission_node = $permission_nodes->addChild(self::NODE_PERMISSION);
                 $permission_node->addAttribute('ugroup', $ugroup);
                 $permission_node->addAttribute('type', PlanningPermissionsManager::PERM_PRIORITY_CHANGE);
                 unset($permission_node);
             }
         }
     }
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:17,代码来源:XMLExporter.class.php

示例2: redirectToPlanning

 private function redirectToPlanning(Tracker_Artifact $artifact, $requested_planning, Planning $planning, Tracker_Artifact_Redirect $redirect)
 {
     $redirect_to_artifact = $requested_planning[AgileDashboard_PaneRedirectionExtractor::ARTIFACT_ID];
     if ($redirect_to_artifact == -1) {
         $redirect_to_artifact = $artifact->getId();
     }
     $redirect->base_url = '/plugins/agiledashboard/';
     $redirect->query_parameters = array('group_id' => $planning->getGroupId(), 'planning_id' => $planning->getId(), 'action' => 'show', 'aid' => $redirect_to_artifact, 'pane' => $requested_planning[AgileDashboard_PaneRedirectionExtractor::PANE]);
 }
开发者ID:pkdevbox,项目名称:tuleap,代码行数:9,代码来源:agiledashboardPlugin.class.php

示例3: getAvailablePlanningTrackers

 /**
  * Retrieve the project trackers that can be used as planning trackers.
  * 
  * @param Planning $planning The planning for which we want to know the available trackers.
  * 
  * @return Array of Tracker
  */
 public function getAvailablePlanningTrackers(Planning $planning)
 {
     $planning_trackers = array($planning->getPlanningTracker());
     foreach ($this->dao->searchNonPlanningTrackersByGroupId($planning->getGroupId()) as $row) {
         $planning_trackers[] = $this->tracker_factory->getInstanceFromRow($row);
     }
     return $planning_trackers;
 }
开发者ID:nterray,项目名称:tuleap,代码行数:15,代码来源:PlanningFactory.class.php

示例4: groupId

 public function groupId()
 {
     return $this->planning->getGroupId();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:4,代码来源:PlanningPresenter.class.php

示例5: getFormPresenter

 private function getFormPresenter(PFUser $user, Planning $planning)
 {
     $group_id = $planning->getGroupId();
     $available_trackers = $this->planning_factory->getAvailableBacklogTrackers($user, $group_id);
     $available_planning_trackers = $this->planning_factory->getAvailablePlanningTrackers($user, $group_id);
     $cardwall_admin = $this->getCardwallConfiguration($planning);
     $available_planning_trackers[] = $planning->getPlanningTracker();
     $kanban_tracker_ids = $this->kanban_factory->getKanbanTrackerIds($group_id);
     $planning_trackers_filtered = $this->getPlanningTrackersFiltered($available_planning_trackers, $kanban_tracker_ids, $planning);
     $backlog_trackers_filtered = $this->getBacklogTrackersFiltered($available_trackers, $kanban_tracker_ids, $planning);
     return new Planning_FormPresenter($this->planning_permissions_manager, $planning, $backlog_trackers_filtered, $planning_trackers_filtered, $cardwall_admin);
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:12,代码来源:PlanningController.class.php

示例6: getFormPresenter

 private function getFormPresenter(Planning $planning)
 {
     $group_id = $planning->getGroupId();
     $available_trackers = $this->planning_factory->getAvailableTrackers($group_id);
     $available_planning_trackers = $this->planning_factory->getAvailablePlanningTrackers($planning);
     return new Planning_FormPresenter($planning, $available_trackers, $available_planning_trackers);
 }
开发者ID:nterray,项目名称:tuleap,代码行数:7,代码来源:PlanningController.class.php


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