PHP Class PageBackendController

Inheritance: extends yupe\components\controllers\BackController
Datei anzeigen Open project: yupe/yupe

Public Methods

Method Description
accessRules ( ) : array
actionCreate ( ) : void Creates a new model.
actionDelete ( integer $id = null ) : void Deletes a particular model.
actionIndex ( ) : void Manages all models.
actionUpdate ( integer $id ) : void Updates a particular model.
actionView ( integer $id ) : void Displays a particular model.
actions ( ) : array
loadModel ( integer $id ) : Page Returns the data model based on the primary key given in the GET variable.

Method Details

accessRules() public method

public accessRules ( ) : array
return array

actionCreate() public method

If creation is successful, the browser will be redirected to the 'view' page.
public actionCreate ( ) : void
return void

actionDelete() public method

If deletion is successful, the browser will be redirected to the 'index' page
public actionDelete ( integer $id = null ) : void
$id integer - record ID
return void

actionIndex() public method

Manages all models.
public actionIndex ( ) : void
return void

actionUpdate() public method

If update is successful, the browser will be redirected to the 'view' page.
public actionUpdate ( integer $id ) : void
$id integer - record ID
return void

actionView() public method

Displays a particular model.
public actionView ( integer $id ) : void
$id integer - record ID
return void

actions() public method

public actions ( ) : array
return array

loadModel() public method

If the data model is not found, an HTTP exception will be raised.
public loadModel ( integer $id ) : Page
$id integer - record ID
return Page $model