NewsQuery.php 544 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\models\base;
  3. /**
  4. * This is the ActiveQuery class for [[News]].
  5. *
  6. * @see News
  7. */
  8. class NewsQuery extends \yii\db\ActiveQuery
  9. {
  10. /*public function active()
  11. {
  12. return $this->andWhere('[[status]]=1');
  13. }*/
  14. /**
  15. * {@inheritdoc}
  16. * @return News[]|array
  17. */
  18. public function all($db = null)
  19. {
  20. return parent::all($db);
  21. }
  22. /**
  23. * {@inheritdoc}
  24. * @return News|array|null
  25. */
  26. public function one($db = null)
  27. {
  28. return parent::one($db);
  29. }
  30. }