mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-03-04 17:14:01 +01:00
Added plant
This commit is contained in:
37
models/query/BoardQuery.php
Normal file
37
models/query/BoardQuery.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user