本文整理汇总了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');
}
示例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;
}
示例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;
}
示例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;
}
示例5: userIsAdmin
private function userIsAdmin(Codendi_Request $request)
{
return $request->getProject()->userIsAdmin($request->getCurrentUser());
}
示例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())));
}
示例7: itReturnsNullIfInvalidRequestedGroupId
public function itReturnsNullIfInvalidRequestedGroupId()
{
$request = new Codendi_Request(array('group_id' => 'stuff'), $this->project_manager);
$this->assertNull($request->getProject());
}