PHP Class News

Mostra file Open project: yupe/yupe Class Usage Examples

Public Methods

Method Description
afterDelete ( )
afterFind ( )
afterSave ( )
attributeLabels ( ) : array
beforeSave ( ) : boolean
beforeValidate ( ) : boolean
behaviors ( ) : array
category ( $category_id )
getCategoryName ( ) : string
getFlag ( ) : string
getProtectedStatus ( ) : mixed | string
getProtectedStatusList ( ) : array
getStatus ( ) : mixed | string
getStatusList ( ) : array
isProtected ( ) : boolean
language ( $lang )
last ( $num )
model ( string $className = __CLASS__ ) : News 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

afterDelete() public method

public afterDelete ( )

afterFind() public method

public afterFind ( )

afterSave() public method

public afterSave ( )

attributeLabels() public method

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

beforeSave() public method

public beforeSave ( ) : boolean
return boolean

beforeValidate() public method

public beforeValidate ( ) : boolean
return boolean

behaviors() public method

public behaviors ( ) : array
return array

category() public method

public category ( $category_id )
$category_id

getCategoryName() public method

public getCategoryName ( ) : string
return string

getFlag() public method

public getFlag ( ) : string
return string

getProtectedStatus() public method

public getProtectedStatus ( ) : mixed | string
return mixed | string

getProtectedStatusList() public method

public getProtectedStatusList ( ) : array
return array

getStatus() public method

public getStatus ( ) : mixed | string
return mixed | string

getStatusList() public method

public getStatusList ( ) : array
return array

isProtected() public method

public isProtected ( ) : boolean
return boolean

language() public method

public language ( $lang )
$lang

last() public method

public last ( $num )
$num

model() public static method

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : News
$className string
return News the static model class

relations() public method

public relations ( ) : array
return array relational rules.

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