PHP Class ContentBlockBackendController

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

Méthodes publiques

Méthode 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 méthode

public accessRules ( ) : array
Résultat array

actionCreate() public méthode

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

actionDelete() public méthode

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
Résultat void

actionIndex() public méthode

Manages all models.
public actionIndex ( ) : void
Résultat void

actionUpdate() public méthode

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
Résultat void

actionView() public méthode

Displays a particular model.
public actionView ( integer $id ) : void
$id integer the ID of the model to be displayed
Résultat void

actions() public méthode

public actions ( ) : array
Résultat array

loadModel() public méthode

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
Résultat ContentBlock $model