You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
467 B

3 years ago
  1. <?php
  2. namespace App\Models;
  3. /**
  4. * Store for Courses
  5. *
  6. *
  7. * @author Björn Hase
  8. * @link https://gitea.tentakelfabrik.de/mITSM/feedback GitHub Repository
  9. *
  10. */
  11. class Bucket extends ModelAbstract
  12. {
  13. // name of store
  14. protected $name = 'buckets';
  15. public function findByVisiblity($visiblity)
  16. {
  17. return $this->store->findBy(
  18. [ 'visiblity' => $visiblity ],
  19. [ 'created_at' => 'ASC' ],
  20. 100
  21. );
  22. }
  23. }