21 lines
257 B
PHP
21 lines
257 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
namespace common\models\query;
|
||
|
|
||
|
use yii\db\ActiveQuery;
|
||
|
|
||
|
class TimelineEventQuery extends ActiveQuery
|
||
|
{
|
||
|
public function today()
|
||
|
{
|
||
|
$this->andWhere(['>=', 'created_at', strtotime('today midnight')]);
|
||
|
return $this;
|
||
|
}
|
||
|
}
|