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