PHP 클래스 ArticleController

상속: extends BaseController
파일 보기 프로젝트 열기: yinhe/yincart 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$layout

공개 메소드들

메소드 설명
accessRules ( ) : array * Specifies the access control rules.
actionAdmin ( ) Manages all models.
actionCreate ( ) Creates a new model.
actionDelete ( integer $id ) Deletes a particular model.
actionIndex ( ) Lists all models.
actionUpdate ( integer $id ) Updates a particular model.
actionView ( integer $id ) Displays a particular model.
behaviors ( )
filters ( ) : array * @return array action filters
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. * @return array access control rules
public accessRules ( ) : array
리턴 array

actionAdmin() 공개 메소드

Manages all models.
public actionAdmin ( )

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 '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 ( 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

behaviors() 공개 메소드

public behaviors ( )

filters() 공개 메소드

* @return array action filters
public filters ( ) : array
리턴 array

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 공개적으로 프로퍼티

public $layout