portal.mkgtu.ru/common/models/query/TimelineEventQuery.php

21 lines
257 B
PHP
Executable File

<?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;
}
}