PHP Class CommentController

Since: 0.6
Author: Philippe Archambault ([email protected])
Inheritance: extends PluginController
Afficher le fichier Open project: yinhe/yincart Class Usage Examples

Méthodes publiques

Свойство Type Description
$layout the default layout for the views. Defaults to '//layouts/column2', meaning using two-column layout. See 'protected/views/layouts/column2.php'.

Méthodes publiques

Méthode Description
accessRules ( ) : array Specifies the access control rules.
actionAdmin ( ) Manages all models.
actionApprove ( ) Approves a particular comment.
actionCreate ( ) Creates a new model.
actionDelete ( ) Deletes a particular model.
actionDelete ( integer $id ) Deletes a particular model.
actionIndex ( ) Lists all models.
actionUpdate ( ) Updates a particular model.
actionUpdate ( integer $id ) Updates a particular model.
actionView ( integer $id ) Displays a particular model.
allowedActions ( ) Actions that are always allowed.
filters ( ) : array
loadModel ( ) Returns the data model based on the primary key given in the GET variable.
loadModel ( $id ) Returns the data model based on the primary key given in the GET variable.

Méthodes protégées

Méthode Description
performAjaxValidation ( $model ) Performs the AJAX validation.

Method Details

accessRules() public méthode

This method is used by the 'accessControl' filter.
public accessRules ( ) : array
Résultat array access control rules

actionAdmin() public méthode

Manages all models.
public actionAdmin ( )

actionApprove() public méthode

If approval is successful, the browser will be redirected to the comment index page.
public actionApprove ( )

actionCreate() public méthode

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

actionDelete() public méthode

If deletion is successful, the browser will be redirected to the 'index' page.
public actionDelete ( )

actionDelete() public méthode

If deletion is successful, the browser will be redirected to the 'admin' page.
public actionDelete ( integer $id )
$id integer the ID of the model to be deleted

actionIndex() public méthode

Lists all models.
public actionIndex ( )

actionUpdate() public méthode

If update is successful, the browser will be redirected to the 'view' page.
public actionUpdate ( )

actionUpdate() public méthode

If update is successful, the browser will be redirected to the 'view' page.
public actionUpdate ( integer $id )
$id integer the ID of the model to be updated

actionView() public méthode

Displays a particular model.
public actionView ( integer $id )
$id integer the ID of the model to be displayed

allowedActions() public méthode

Actions that are always allowed.
public allowedActions ( )

filters() public méthode

public filters ( ) : array
Résultat array action filters

loadModel() public méthode

If the data model is not found, an HTTP exception will be raised.
public loadModel ( )

loadModel() public méthode

If the data model is not found, an HTTP exception will be raised.
public loadModel ( $id )

performAjaxValidation() protected méthode

Performs the AJAX validation.
protected performAjaxValidation ( $model )

Property Details

$layout public_oe property

the default layout for the views. Defaults to '//layouts/column2', meaning using two-column layout. See 'protected/views/layouts/column2.php'.
public $layout