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.
20 lines
424 B
20 lines
424 B
6 years ago
|
<?php
|
||
|
|
||
|
namespace common\modules\banners\entities\queries;
|
||
|
|
||
|
use common\modules\banners\entities\BannerPlace;
|
||
|
use yii\db\ActiveQuery;
|
||
|
|
||
|
class BannerPlaceQuery extends ActiveQuery
|
||
|
{
|
||
|
/**
|
||
|
* @param null $alias
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function active($alias = null)
|
||
|
{
|
||
|
return $this->andWhere([
|
||
|
($alias ? $alias . '.' : '') . 'active' => BannerPlace::STATUS_ACTIVE,
|
||
|
]);
|
||
|
}
|
||
|
}
|