PHP Class Producer

Inheritance: extends yupe\models\YModel
Afficher le fichier Open project: yupe/yupe Class Usage Examples

Méthodes publiques

Méthode Description
attributeLabels ( ) : array
behaviors ( ) : array
getAll ( integer $limit, string $order = 'sort ASC' ) : mixed Get all brands
getAllDataProvider ( ) : CActiveDataProvider Get all brands
getBySlug ( $slug ) : null | Producer Get producer by slug
getFormattedList ( ) : array
getStatusList ( ) : array
getStatusTitle ( ) : string
model ( string $className = __CLASS__ ) : Producer Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
scopes ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

Method Details

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

behaviors() public méthode

public behaviors ( ) : array
Résultat array

getAll() public méthode

Get all brands
public getAll ( integer $limit, string $order = 'sort ASC' ) : mixed
$limit integer
$order string
Résultat mixed

getAllDataProvider() public méthode

Get all brands
public getAllDataProvider ( ) : CActiveDataProvider
Résultat CActiveDataProvider

getBySlug() public méthode

Get producer by slug
public getBySlug ( $slug ) : null | Producer
$slug
Résultat null | Producer

getFormattedList() public méthode

public getFormattedList ( ) : array
Résultat array

getStatusList() public méthode

public getStatusList ( ) : array
Résultat array

getStatusTitle() public méthode

public getStatusTitle ( ) : string
Résultat string

model() public static méthode

Please note that you should have this exact method in all your CActiveRecord descendants!
public static model ( string $className = __CLASS__ ) : Producer
$className string active record class name.
Résultat Producer the static model class

relations() public méthode

public relations ( ) : array
Résultat array

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

scopes() public méthode

public scopes ( ) : array
Résultat array

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name