PHP 클래스 ItemController

상속: extends BaseController
파일 보기 프로젝트 열기: 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.
actionAjaxGetSkus ( )
actionBulk ( ) 批量操作
actionCreate ( ) Creates a new model.
actionDelete ( integer $id ) Deletes a particular model.
actionGetItemSpec ( )
actionGetPropValues ( ) ajax 成功后一般返回json数据 然后jquery读取出来 在写个function, 转为html
actionIndex ( ) Lists all models.
actionList ( ) Manages all models.
actionUpdate ( integer $id ) Updates a particular model.
actionUpload ( ) upload images
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.
loadModel ( $id ) : CActiveRecord 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 ( )

actionAjaxGetSkus() 공개 메소드

public actionAjaxGetSkus ( )

actionBulk() 공개 메소드

批量操作
public actionBulk ( )

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

actionGetItemSpec() 공개 메소드

public actionGetItemSpec ( )

actionGetPropValues() 공개 메소드

ajax 成功后一般返回json数据 然后jquery读取出来 在写个function, 转为html
public actionGetPropValues ( )

actionIndex() 공개 메소드

Lists all models.
public actionIndex ( )

actionList() 공개 메소드

Manages all models.
public actionList ( )

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

actionUpload() 공개 메소드

upload images
저자: milkyway([email protected])
public actionUpload ( )

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 )

loadModel() 공개 메소드

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

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