]> git.mxchange.org Git - friendica.git/blob - src/Repository/Introduction.php
Introduce "order" and "limit" argument instead of "param" array for BaseRepository...
[friendica.git] / src / Repository / Introduction.php
1 <?php
2
3 namespace Friendica\Repository;
4
5 use Friendica\BaseRepository;
6 use Friendica\Collection;
7 use Friendica\Model;
8
9 class Introduction extends BaseRepository
10 {
11         protected static $table_name = 'intro';
12
13         protected static $model_class = Model\Introduction::class;
14
15         protected static $collection_class = Collection\Introductions::class;
16
17         /**
18          * @param array $data
19          * @return Model\Introduction
20          */
21         protected function create(array $data)
22         {
23                 return new Model\Introduction($this->dba, $this->logger, $this, $data);
24         }
25
26         /**
27          * @param array $condition
28          * @return Model\Introduction
29          * @throws \Friendica\Network\HTTPException\NotFoundException
30          */
31         public function selectFirst(array $condition)
32         {
33                 return parent::selectFirst($condition);
34         }
35
36         /**
37          * @param array $condition
38          * @param array $order An optional array with order information
39          * @param int|array $limit Optional limit information
40          *
41          * @return Collection\Introductions
42          * @throws \Exception
43          */
44         public function select(array $condition = [], array $order = [], $limit = null)
45         {
46                 return parent::select($condition, $order, $limit);
47         }
48
49         /**
50          * @param array $condition
51          * @param array $order
52          * @param int|null $max_id
53          * @param int|null $since_id
54          * @param int|array $limit
55          * @return Collection\Introductions
56          * @throws \Exception
57          */
58         public function selectByBoundaries(array $condition = [], array $order = [], int $max_id = null, int $since_id = null, int $limit = self::LIMIT)
59         {
60                 return parent::selectByBoundaries($condition, $order, $max_id, $since_id, $limit);
61         }
62 }