PHP Class Ojs\JournalBundle\Controller\BoardController

Inheritance: extends Ojs\CoreBundle\Controller\OjsController
Exibir arquivo Open project: ojs/ojs

Public Methods

Method Description
addMemberAction ( Request $request, $boardId ) : RedirectResponse add posted user id as board member with given board id
createAction ( Request $request ) : RedirectResponse | Response Creates a new Board entity.
deleteAction ( Request $request, Board $entity ) : RedirectResponse Deletes a Board entity.
editAction ( Board $board ) : Response Displays a form to edit an existing Board entity.
indexAction ( Request $request ) Lists all Board entities.
memberSortAction ( Request $request, $boardId ) : Response
newAction ( ) Displays a form to create a new Board entity.
otoGenerateAction ( Request $request ) : RedirectResponse
removeMemberAction ( $boardId, $id ) : RedirectResponse
showAction ( Board $board ) : Response Finds and displays a board and it's details.
sortAction ( Request $request ) : Response
updateAction ( Request $request, Board $entity ) : RedirectResponse | Response Edits an existing Board entity.

Private Methods

Method Description
createAddMemberForm ( BoardMember $entity, Board $board, Journal $journal ) : Form Creates a form to add Member to Board entity.
createCreateForm ( Board $entity, Journal $journal ) : Form Creates a form to create a Board entity.
createEditForm ( Board $entity ) : Form Creates a form to edit a Board entity.

Method Details

addMemberAction() public method

add posted user id as board member with given board id
public addMemberAction ( Request $request, $boardId ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$boardId
return Symfony\Component\HttpFoundation\RedirectResponse

createAction() public method

Creates a new Board entity.
public createAction ( Request $request ) : RedirectResponse | Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

deleteAction() public method

Deletes a Board entity.
public deleteAction ( Request $request, Board $entity ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$entity Ojs\JournalBundle\Entity\Board
return Symfony\Component\HttpFoundation\RedirectResponse

editAction() public method

Displays a form to edit an existing Board entity.
public editAction ( Board $board ) : Response
$board Ojs\JournalBundle\Entity\Board
return Symfony\Component\HttpFoundation\Response

indexAction() public method

Lists all Board entities.
public indexAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

memberSortAction() public method

public memberSortAction ( Request $request, $boardId ) : Response
$request Symfony\Component\HttpFoundation\Request
$boardId
return Symfony\Component\HttpFoundation\Response

newAction() public method

Displays a form to create a new Board entity.
public newAction ( )

otoGenerateAction() public method

public otoGenerateAction ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\RedirectResponse

removeMemberAction() public method

public removeMemberAction ( $boardId, $id ) : RedirectResponse
$boardId
$id
return Symfony\Component\HttpFoundation\RedirectResponse

showAction() public method

This page is also an arrangement page for a board. In this page journal manager can : - list members - add members to a board - change orders of the members
public showAction ( Board $board ) : Response
$board Ojs\JournalBundle\Entity\Board
return Symfony\Component\HttpFoundation\Response

sortAction() public method

public sortAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

updateAction() public method

Edits an existing Board entity.
public updateAction ( Request $request, Board $entity ) : RedirectResponse | Response
$request Symfony\Component\HttpFoundation\Request
$entity Ojs\JournalBundle\Entity\Board
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response