PHP Class Ojs\JournalBundle\Controller\ArticleController

Inheritance: extends Ojs\CoreBundle\Controller\OjsController
Mostra file Open project: ojs/ojs

Public Methods

Method Description
createAction ( Request $request ) : RedirectResponse | Response Creates a new Article entity.
deleteAction ( Request $request, Article $article ) : RedirectResponse Deletes an article entity
editAction ( Article $article ) : Response Displays a form to edit an existing article entity
indexAction ( Request $request ) : Response Lists all article entities for journal
newAction ( ) : Response Displays a form to create a new article entity
showAction ( Article $article ) : Response Finds and displays an article entity
updateAction ( Request $request, Article $article ) : RedirectResponse | Response Edits an existing Article entity.

Private Methods

Method Description
createCreateForm ( Article $entity, Journal $journal ) : Form Creates a form to create a Article entity.
createEditForm ( Article $entity, Journal $journal ) : Form Creates a form to edit a Article entity.

Method Details

createAction() public method

Creates a new Article 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 an article entity
public deleteAction ( Request $request, Article $article ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$article Ojs\JournalBundle\Entity\Article
return Symfony\Component\HttpFoundation\RedirectResponse

editAction() public method

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

indexAction() public method

Lists all article entities for journal
public indexAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

newAction() public method

Displays a form to create a new article entity
public newAction ( ) : Response
return Symfony\Component\HttpFoundation\Response

showAction() public method

Finds and displays an article entity
public showAction ( Article $article ) : Response
$article Ojs\JournalBundle\Entity\Article
return Symfony\Component\HttpFoundation\Response

updateAction() public method

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