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

21 lines
257 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?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;
}
}