PHP Class Ojs\AdminBundle\Controller\AdminPageController

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

Public Methods

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

Private Methods

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

Method Details

createAction() public method

Creates a new Page 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 Page entity.
public deleteAction ( Request $request, AdminPage $entity ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$entity Ojs\AdminBundle\Entity\AdminPage
return Symfony\Component\HttpFoundation\RedirectResponse

editAction() public method

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

indexAction() public method

List all page 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 Page entity.
public newAction ( )

showAction() public method

Finds and displays a Page entity.
public showAction ( AdminPage $entity ) : Response
$entity Ojs\AdminBundle\Entity\AdminPage
return Symfony\Component\HttpFoundation\Response

updateAction() public method

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