You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
437 B
22 lines
437 B
<?php |
|
|
|
namespace common\modules\languages\entities\queries; |
|
|
|
use common\modules\languages\entities\Language; |
|
use yii\db\ActiveQuery; |
|
|
|
class LanguageQuery extends ActiveQuery |
|
{ |
|
/** |
|
* @return LanguageQuery |
|
*/ |
|
public function active() |
|
{ |
|
return $this->andWhere(['status' => Language::STATUS_ACTIVE]); |
|
} |
|
|
|
public function default() |
|
{ |
|
return $this->andWhere(['default' => Language::DEFAULT_TRUE]); |
|
} |
|
}
|
|
|