PHP Class ItemController

Inheritance: extends BaseController
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.
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.

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

actionAjaxGetSkus() public méthode

public actionAjaxGetSkus ( )

actionBulk() public méthode

批量操作
public actionBulk ( )

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 'admin' page.
public actionDelete ( integer $id )
$id integer the ID of the model to be deleted

actionGetItemSpec() public méthode

public actionGetItemSpec ( )

actionGetPropValues() public méthode

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

actionIndex() public méthode

Lists all models.
public actionIndex ( )

actionList() public méthode

Manages all models.
public actionList ( )

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

actionUpload() public méthode

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

actionView() public méthode

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

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 ( $id )

loadModel() public méthode

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

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