示例#1
0
文件: Quiz.php 项目: BoBRoID/new.k-z
 /**
  * @return \yii\db\ActiveQuery
  */
 public static function findPublished()
 {
     $now = time();
     return parent::find()->andWhere("`dateEnd` >= '{$now}' AND `dateStart` <= '{$now}' AND `published` = '1'");
 }