PHP Class ContentBlockBackendController

Since: 0.1
Author: yupe team ([email protected])
Inheritance: extends yupe\components\controllers\BackController
Show file Open project: yupe/yupe

Public Methods

Method Description
accessRules ( ) : array
actionCreate ( ) : void Creates a new model.
actionDelete ( integer $id ) : 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 ) : ContentBlock 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 'admin' page.
public actionDelete ( integer $id ) : void
$id integer the ID of the model to be deleted
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 the ID of the model to be updated
return void

actionView() public method

Displays a particular model.
public actionView ( integer $id ) : void
$id integer the ID of the model to be displayed
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 ) : ContentBlock
$id integer the ID of the model to be loaded
return ContentBlock $model