Docblocks

This commit is contained in:
Dan Cryer 2015-10-09 09:38:55 +01:00
commit 42d6bce14c
8 changed files with 98 additions and 1 deletions

View file

@ -28,11 +28,17 @@ class GroupController extends Controller
*/
protected $groupStore;
/**
* Set up this controller.
*/
public function init()
{
$this->groupStore = b8\Store\Factory::getStore('ProjectGroup');
}
/**
* List project groups.
*/
public function index()
{
$this->requireAdmin();
@ -53,6 +59,11 @@ class GroupController extends Controller
$this->view->groups = $groups;
}
/**
* Add or edit a project group.
* @param null $groupId
* @return void|b8\Http\Response\RedirectResponse
*/
public function edit($groupId = null)
{
$this->requireAdmin();
@ -91,6 +102,11 @@ class GroupController extends Controller
$this->view->form = $form;
}
/**
* Delete a project group.
* @param $groupId
* @return b8\Http\Response\RedirectResponse
*/
public function delete($groupId)
{
$this->requireAdmin();