]> git.mxchange.org Git - friendica.git/blob - src/Repository/Introduction.php
Merge pull request #8077 from annando/notifications
[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 $params
39          * @return Collection\Introductions
40          * @throws \Exception
41          */
42         public function select(array $condition = [], array $params = [])
43         {
44                 return parent::select($condition, $params);
45         }
46
47         /**
48          * @param array $condition
49          * @param array $params
50          * @param int|null $max_id
51          * @param int|null $since_id
52          * @param int $limit
53          * @return Collection\Introductions
54          * @throws \Exception
55          */
56         public function selectByBoundaries(array $condition = [], array $params = [], int $max_id = null, int $since_id = null, int $limit = self::LIMIT)
57         {
58                 return parent::selectByBoundaries($condition, $params, $max_id, $since_id, $limit);
59         }
60 }