PHP Class Producer

Inheritance: extends yupe\models\YModel
Show file Open project: yupe/yupe Class Usage Examples

Public Methods

Method 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 method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

behaviors() public method

public behaviors ( ) : array
return array

getAll() public method

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

getAllDataProvider() public method

Get all brands
public getAllDataProvider ( ) : CActiveDataProvider
return CActiveDataProvider

getBySlug() public method

Get producer by slug
public getBySlug ( $slug ) : null | Producer
$slug
return null | Producer

getFormattedList() public method

public getFormattedList ( ) : array
return array

getStatusList() public method

public getStatusList ( ) : array
return array

getStatusTitle() public method

public getStatusTitle ( ) : string
return string

model() public static method

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.
return Producer the static model class

relations() public method

public relations ( ) : array
return array

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

scopes() public method

public scopes ( ) : array
return array

tableName() public method

public tableName ( ) : string
return string the associated database table name