CategoryFilter::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : CategoryFilter
$className string active record class name.
return CategoryFilter the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Example #1
0
 public function clearAllFiltersRelations()
 {
     CategoryFilter::model()->deleteAllByAttributes(array('category_id' => $this->category_id));
 }