PHP Class Taxonomy, gxc-cms

The opinions expressed on the website belong to their authors and do not necessarily reflect the views of the United States Agency for International Development (USAID) or the US Government. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, you can read the copy of GNU General Public License in English here: . For more details about CMS WebAPL 1.0 please contact Enterprise Business Solutions SRL, Republic of Moldova, MD 2001, Ion Inculet 33 Street or send an email to [email protected]
Inheritance: extends Eloquent
Show file Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
getTaxonomy ( )
model ( $className = __CLASS__ ) : Taxonomy Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

Protected Methods

Method Description
beforeSave ( )

Method Details

attributeLabels() public method

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

beforeSave() protected method

protected beforeSave ( )

getTaxonomy() public static method

public static getTaxonomy ( )

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Taxonomy
return Taxonomy 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.

tableName() public method

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