Taxonomy::search PHP Method

    public function search()
    {
        // Warning: Please modify the following code to remove attributes that
        // should not be searched.
        $criteria = new CDbCriteria();
        $criteria->compare('taxonomy_id', $this->taxonomy_id, true);
        $criteria->compare('name', $this->name, true);
        $criteria->compare('description', $this->description, true);
        $criteria->compare('type', $this->type, true);
        $criteria->compare('lang', $this->lang);
        $criteria->compare('guid', $this->lang);
        $sort = new CSort();
        $sort->attributes = array('taxonomy_id');
        $sort->defaultOrder = 'taxonomy_id DESC';
        return new CActiveDataProvider($this, array('criteria' => $criteria, 'sort' => $sort));
    }