PHP 클래스 ThemeController

저자: Yoshitaka Kitagawa
상속: extends AppApiController
파일 보기 프로젝트 열기: 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.
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.
filters ( ) : array
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 ( )

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

filters() 공개 메소드

public filters ( ) : array
리턴 array action filters

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