3 namespace Friendica\Repository;
5 use Friendica\BaseRepository;
6 use Friendica\Collection;
9 class Introduction extends BaseRepository
11 protected static $table_name = 'intro';
13 protected static $model_class = Model\Introduction::class;
15 protected static $collection_class = Collection\Introductions::class;
19 * @return Model\Introduction
21 protected function create(array $data)
23 return new Model\Introduction($this->dba, $this->logger, $this, $data);
27 * @param array $condition
28 * @return Model\Introduction
29 * @throws \Friendica\Network\HTTPException\NotFoundException
31 public function selectFirst(array $condition)
33 return parent::selectFirst($condition);
37 * @param array $condition
38 * @param array $params
39 * @return Collection\Introductions
42 public function select(array $condition = [], array $params = [])
44 return parent::select($condition, $params);
48 * @param array $condition
49 * @param array $params
50 * @param int|null $max_id
51 * @param int|null $since_id
53 * @return Collection\Introductions
56 public function selectByBoundaries(array $condition = [], array $params = [], int $max_id = null, int $since_id = null, int $limit = self::LIMIT)
58 return parent::selectByBoundaries($condition, $params, $max_id, $since_id, $limit);