3 * @copyright Copyright (C) 2020, Friendica
5 * @license GNU AGPL version 3 or any later version
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22 namespace Friendica\Repository;
24 use Friendica\BaseRepository;
25 use Friendica\Collection;
28 class Introduction extends BaseRepository
30 protected static $table_name = 'intro';
32 protected static $model_class = Model\Introduction::class;
34 protected static $collection_class = Collection\Introductions::class;
38 * @return Model\Introduction
40 protected function create(array $data)
42 return new Model\Introduction($this->dba, $this->logger, $this, $data);
46 * @param array $condition
47 * @return Model\Introduction
48 * @throws \Friendica\Network\HTTPException\NotFoundException
50 public function selectFirst(array $condition)
52 return parent::selectFirst($condition);
56 * @param array $condition
57 * @param array $params
58 * @return Collection\Introductions
61 public function select(array $condition = [], array $params = [])
63 return parent::select($condition, $params);
67 * @param array $condition
68 * @param array $params
69 * @param int|null $max_id
70 * @param int|null $since_id
72 * @return Collection\Introductions
75 public function selectByBoundaries(array $condition = [], array $params = [], int $max_id = null, int $since_id = null, int $limit = self::LIMIT)
77 return parent::selectByBoundaries($condition, $params, $max_id, $since_id, $limit);