當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。