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


PHP Codendi_Request::getProject方法代码示例

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


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

示例1: __construct

 public function __construct(Codendi_Request $request)
 {
     $this->project = $request->getProject();
     $this->words = $request->get('words');
     $this->offset = intval($request->getValidated('offset', 'uint', 0));
     $this->exact = $request->getValidated('exact', 'uint', false);
     $this->trackerv3id = $request->getValidated('atid', 'uint', 0);
     $this->forum_id = $request->getValidated('forum_id', 'uint', 0);
     $this->is_ajax = $request->isAjax();
     $this->type_of_search = $request->get('type_of_search');
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:SearchQuery.class.php

示例2: getTopPlanningV2PaneInfo

 /**
  * @return \AgileDashboard_Milestone_Pane_Planning_PlanningPaneInfo
  */
 private function getTopPlanningV2PaneInfo(Planning_Milestone $milestone)
 {
     $milestone_artifact_id = $this->getMilestoneArtifactId();
     $milestone_tracker = $milestone->getPlanning()->getPlanningTracker();
     if (!$milestone_tracker) {
         return;
     }
     $pane_info = new AgileDashboard_Milestone_Pane_TopPlanning_TopPlanningV2PaneInfo($milestone, $this->theme_path, $milestone_tracker);
     $pane_info->setActive(true);
     $this->active_pane[$milestone_artifact_id] = new AgileDashboard_Milestone_Pane_Planning_PlanningV2Pane($pane_info, new AgileDashboard_Milestone_Pane_Planning_PlanningV2Presenter($this->request->getCurrentUser(), $this->request->getProject(), $milestone_artifact_id, null, $this->getPaginatedBacklogItemsRepresentationsForTopMilestone($milestone, $this->request->getCurrentUser()), $this->getPaginatedTopMilestonesRepresentations($this->request->getProject(), $this->request->getCurrentUser())));
     return $pane_info;
 }
开发者ID:superlinger,项目名称:tuleap,代码行数:15,代码来源:VirtualTopMilestonePaneFactory.class.php

示例3: getPlanningV2PaneInfo

 private function getPlanningV2PaneInfo(Planning_Milestone $milestone)
 {
     $submilestone_tracker = $this->submilestone_finder->findFirstSubmilestoneTracker($milestone);
     if (!$submilestone_tracker) {
         return;
     }
     $pane_info = $this->pane_info_factory->getPlanningV2PaneInfo($milestone);
     if ($this->request->get('pane') == AgileDashboard_Milestone_Pane_Planning_PlanningV2PaneInfo::IDENTIFIER) {
         $pane_info->setActive(true);
         $this->active_pane[$milestone->getArtifactId()] = new AgileDashboard_Milestone_Pane_Planning_PlanningV2Pane($pane_info, new AgileDashboard_Milestone_Pane_Planning_PlanningV2Presenter($this->request->getCurrentUser(), $this->request->getProject(), $milestone->getArtifactId()));
     }
     return $pane_info;
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:13,代码来源:MilestonePaneFactory.class.php

示例4: getTopPlanningV2PaneInfo

 /**
  * @return \AgileDashboard_Milestone_Pane_Planning_PlanningPaneInfo
  */
 private function getTopPlanningV2PaneInfo(Planning_Milestone $milestone)
 {
     $milestone_artifact_id = $this->getMilestoneArtifactId();
     $milestone_tracker = $milestone->getPlanning()->getPlanningTracker();
     if (!$milestone_tracker) {
         return;
     }
     $pane_info = new AgileDashboard_Milestone_Pane_TopPlanning_TopPlanningV2PaneInfo($milestone, $this->theme_path, $milestone_tracker);
     if ($this->request->get('pane') == AgileDashboard_Milestone_Pane_TopPlanning_TopPlanningV2PaneInfo::IDENTIFIER) {
         $pane_info->setActive(true);
         $this->active_pane[$milestone_artifact_id] = new AgileDashboard_Milestone_Pane_Planning_PlanningV2Pane($pane_info, new AgileDashboard_Milestone_Pane_Planning_PlanningV2Presenter($this->request->getCurrentUser(), $this->request->getProject(), $milestone_artifact_id));
     }
     return $pane_info;
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:17,代码来源:VirtualTopMilestonePaneFactory.class.php

示例5: userIsAdmin

 private function userIsAdmin(Codendi_Request $request)
 {
     return $request->getProject()->userIsAdmin($request->getCurrentUser());
 }
开发者ID:uniteddiversity,项目名称:tuleap,代码行数:4,代码来源:AgileDashboardRouter.class.php

示例6: getPlanningV2Pane

 /**
  * @return AgileDashboard_Milestone_Pane_Planning_PlanningV2Pane
  */
 private function getPlanningV2Pane(AgileDashboard_Milestone_Pane_Planning_PlanningV2PaneInfo $info, Planning_Milestone $milestone)
 {
     return new AgileDashboard_Milestone_Pane_Planning_PlanningV2Pane($info, new AgileDashboard_Milestone_Pane_Planning_PlanningV2Presenter($this->request->getCurrentUser(), $this->request->getProject(), $milestone->getArtifactId(), $this->getMilestoneRepresentation($milestone, $this->request->getCurrentUser()), $this->getPaginatedBacklogItemsRepresentationsForMilestone($milestone, $this->request->getCurrentUser()), $this->getPaginatedSubMilestonesRepresentations($milestone, $this->request->getCurrentUser())));
 }
开发者ID:superlinger,项目名称:tuleap,代码行数:7,代码来源:MilestonePaneFactory.class.php

示例7: itReturnsNullIfInvalidRequestedGroupId

 public function itReturnsNullIfInvalidRequestedGroupId()
 {
     $request = new Codendi_Request(array('group_id' => 'stuff'), $this->project_manager);
     $this->assertNull($request->getProject());
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:5,代码来源:Codendi_RequestTest.php


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