本文整理汇总了PHP中Planning::getId方法的典型用法代码示例。如果您正苦于以下问题:PHP Planning::getId方法的具体用法?PHP Planning::getId怎么用?PHP Planning::getId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Planning
的用法示例。
在下文中一共展示了Planning::getId方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param Cardwall_Board $board The board
* @param Cardwall_QrCode $qrcode QrCode to display. false if no qrcode (thus no typehinting)
* @param string $redirect_parameter the redirect paramter to add to various url
* @param Planning $planning The concerned planning
* @param Planning_Milestone $milestone The milestone
*/
public function __construct(Cardwall_Board $board, $qrcode, $redirect_parameter, $switch_display_username_url, $is_display_avatar_selected, Planning $planning, Planning_Milestone $milestone, Cardwall_EffortProgressPresenter $progress_presenter)
{
parent::__construct($board, $qrcode, $redirect_parameter);
$this->nifty = '';
$this->swimline_title = $GLOBALS['Language']->getText('plugin_cardwall', 'swimline_title');
$this->has_swimline_header = true;
$this->switch_display_username_url = $switch_display_username_url;
$this->is_display_avatar_selected = $is_display_avatar_selected;
$this->display_avatar_label = $GLOBALS['Language']->getText('plugin_cardwall', 'display_avatar_label');
$this->display_avatar_title = $GLOBALS['Language']->getText('plugin_cardwall', 'display_avatar_title');
$this->search_cardwall_placeholder = $GLOBALS['Language']->getText('plugin_cardwall', 'search_cardwall_placeholder');
$this->planning_id = $planning->getId();
$this->milestone = $milestone;
$this->progress_presenter = $progress_presenter;
}
示例2: 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);
}
}
}
}
示例3: getBacklogTrackers
/**
* Get a list of trackers defined as backlog for a planning
*
* @param Planning $planning
*
* @return array of Tracker
*/
private function getBacklogTrackers(Planning $planning)
{
$backlog_trackers = array();
$planning_id = $planning->getId();
$rows = $this->dao->searchBacklogTrackersById($planning_id);
foreach ($rows as $row) {
$backlog_trackers[] = $this->tracker_factory->getTrackerById($row['tracker_id']);
}
return $backlog_trackers;
}
示例4: 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]);
}
示例5: getBacklogTracker
/**
* Get a list of trackers defined as backlog for a planning
*
* @param Planning $planning
*
* @return array of Tracker
*/
private function getBacklogTracker(Planning $planning)
{
$planning_id = $planning->getId();
$row = $this->dao->searchBacklogTrackerById($planning_id);
$backlog_tracker = $this->tracker_factory->getTrackerById($row['tracker_id']);
return $backlog_tracker;
}
示例6: getPlanningId
public function getPlanningId()
{
return $this->planning->getId();
}
示例7: getAllMilestones
/**
* Loads all open milestones for the given project and planning
*
* @param PFUser $user
* @param Planning $planning
*
* @return Array of Planning_Milestone
*/
public function getAllMilestones(PFUser $user, Planning $planning)
{
if (!isset($this->cache_all_milestone[$planning->getId()])) {
$this->cache_all_milestone[$planning->getId()] = $this->getAllMilestonesWithoutCaching($user, $planning);
}
return $this->cache_all_milestone[$planning->getId()];
}
示例8: planningRedirectToNew
public function planningRedirectToNew()
{
return 'planning[][' . $this->planning->getId() . ']=-1';
}