mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-02-21 03:41:21 +01:00
35 lines
550 B
PHP
35 lines
550 B
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
/**
|
|
* This is the ActiveQuery class for [[History]].
|
|
*
|
|
* @see History
|
|
*/
|
|
class HistoryQuery extends \yii\db\ActiveQuery
|
|
{
|
|
/*public function active()
|
|
{
|
|
return $this->andWhere('[[status]]=1');
|
|
}*/
|
|
|
|
/**
|
|
* @inheritdoc
|
|
* @return History[]|array
|
|
*/
|
|
public function all($db = null)
|
|
{
|
|
return parent::all($db);
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
* @return History|array|null
|
|
*/
|
|
public function one($db = null)
|
|
{
|
|
return parent::one($db);
|
|
}
|
|
}
|