PHP 클래스 CommentController

부터: 0.6
저자: Philippe Archambault ([email protected])
상속: extends PluginController
파일 보기 프로젝트 열기: yinhe/yincart 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$layout the default layout for the views. Defaults to '//layouts/column2', meaning using two-column layout. See 'protected/views/layouts/column2.php'.

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
performAjaxValidation ( $model ) Performs the AJAX validation.

메소드 상세

accessRules() 공개 메소드

This method is used by the 'accessControl' filter.
public accessRules ( ) : array
리턴 array access control rules

actionAdmin() 공개 메소드

Manages all models.
public actionAdmin ( )

actionApprove() 공개 메소드

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

actionCreate() 공개 메소드

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

actionDelete() 공개 메소드

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

actionDelete() 공개 메소드

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() 공개 메소드

Lists all models.
public actionIndex ( )

actionUpdate() 공개 메소드

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

actionUpdate() 공개 메소드

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() 공개 메소드

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

allowedActions() 공개 메소드

Actions that are always allowed.
public allowedActions ( )

filters() 공개 메소드

public filters ( ) : array
리턴 array action filters

loadModel() 공개 메소드

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

loadModel() 공개 메소드

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

performAjaxValidation() 보호된 메소드

Performs the AJAX validation.
protected performAjaxValidation ( $model )

프로퍼티 상세

$layout 공개적으로 프로퍼티

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