本文整理汇总了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);
}
}
}
}
示例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]);
}
示例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;
}
示例4: groupId
public function groupId()
{
return $this->planning->getGroupId();
}
示例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);
}
示例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);
}