Retrieves a list of models based on the current search/filter conditions.
{
$criteria = new CDbCriteria;
$criteria->compare('id', $this->id);
$criteria->compare('username', $this->username, true);
$criteria->compare('password', $this->password, true);
$criteria->compare('email', $this->email, true);
$criteria->compare('activkey', $this->activkey, true);
$criteria->compare('createtime', $this->createtime, true);
$criteria->compare('lastvisit', $this->lastvisit, true);
$criteria->compare('status', $this->status);
$criteria->compare('is_bulk', $this->is_bulk);
$criteria->together = true;
$criteria->with = array('profile');
$criteria->compare('profile.firstname', $this->firstname, true);
$criteria->compare('profile.lastname', $this->lastname, true);
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
'pagination' => array(
'pageSize' => Yii::app()->controller->module->user_page_size,
),
));
}