/** * @throws AgileDashboard_UserNotAdminException * * @return bool */ public function setColumnWipLimit(PFUser $user, AgileDashboard_Kanban $kanban, AgileDashboard_KanbanColumn $column, $wip_limit) { $project_id = $this->tracker_factory->getTrackerById($kanban->getTrackerId())->getGroupId(); if (!$this->permissions_manager->userCanAdministrate($user, $project_id)) { throw new AgileDashboard_UserNotAdminException($user); } return $this->column_dao->setColumnWipLimit($column->getKanbanId(), $column->getId(), $wip_limit); }
private function hideColumnFromTrackerFieldStaticValues(AgileDashboard_KanbanColumn $column, Tracker_Semantic_Status $semantic) { return $this->formelement_field_list_bind_static_value_dao->hideValue($column->getId()); }
/** * @throws AgileDashboard_UserNotAdminException * * @return bool */ public function setColumnWipLimit(PFUser $user, AgileDashboard_Kanban $kanban, AgileDashboard_KanbanColumn $column, $wip_limit) { $project_id = $this->getProjectIdForKanban($kanban); $this->checkUserCanAdministrate($user, $project_id); return $this->column_dao->setColumnWipLimit($column->getKanbanId(), $column->getId(), $wip_limit); }