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


PHP Planning::getId方法代码示例

本文整理汇总了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;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:22,代码来源:PaneContentPresenter.class.php

示例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);
             }
         }
     }
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:17,代码来源:XMLExporter.class.php

示例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;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:17,代码来源:PlanningFactory.class.php

示例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]);
 }
开发者ID:pkdevbox,项目名称:tuleap,代码行数:9,代码来源:agiledashboardPlugin.class.php

示例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;
 }
开发者ID:nterray,项目名称:tuleap,代码行数:14,代码来源:PlanningFactory.class.php

示例6: getPlanningId

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

示例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()];
 }
开发者ID:ansarbek,项目名称:tuleap,代码行数:15,代码来源:MilestoneFactory.class.php

示例8: planningRedirectToNew

 public function planningRedirectToNew()
 {
     return 'planning[][' . $this->planning->getId() . ']=-1';
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:4,代码来源:ShortAccess.class.php


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