PHP Class Ojs\AdminBundle\Controller\AdminSubjectController

Inheritance: extends Ojs\CoreBundle\Controller\OjsController
显示文件 Open project: ojs/ojs

Public Methods

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

Private Methods

Method Description
createCreateForm ( Subject $entity ) : Form Creates a form to create a Subject entity.
createEditForm ( Subject $entity ) : Form Creates a form to edit a Subject entity.

Method Details

createAction() public method

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

deleteAction() public method

public deleteAction ( Request $request, Subject $entity ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$entity Ojs\JournalBundle\Entity\Subject
return Symfony\Component\HttpFoundation\RedirectResponse

editAction() public method

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

indexAction() public method

Lists all Subject entities.
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 Subject entity.
public newAction ( )

showAction() public method

Finds and displays a Subject entity.
public showAction ( Request $request, Subject $entity ) : Response
$request Symfony\Component\HttpFoundation\Request
$entity Ojs\JournalBundle\Entity\Subject
return Symfony\Component\HttpFoundation\Response

updateAction() public method

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