We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 20 | class ArticleRepository extends BaseRepository |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var Article|Builder|Collection |
||
| 24 | */ |
||
| 25 | protected $model; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * PageRepository constructor. |
||
| 29 | * |
||
| 30 | * @param Article|Menu $model |
||
|
|
|||
| 31 | */ |
||
| 32 | public function __construct(Article $model) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Load all the articles that will be displayed dont he front page based on the criteria of being an public post. |
||
| 39 | * |
||
| 40 | * @ver 5.2.0 |
||
| 41 | * @date 14/05/2018 |
||
| 42 | * @return Builder|Collection |
||
| 43 | */ |
||
| 44 | private function publicArticles() |
||
| 56 | |||
| 57 | public function whereSitemappable() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @ver 5.0.2 |
||
| 64 | * @date 08/03/2018 |
||
| 65 | * @param int $count |
||
| 66 | * @return \Illuminate\Database\Eloquent\Collection|Collection|static[] |
||
| 67 | */ |
||
| 68 | public function latest($count = 7) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @ver 5.0.2 |
||
| 75 | * @date 08/03/2018 |
||
| 76 | * @param int $count |
||
| 77 | * @return \Illuminate\Database\Eloquent\Collection|Collection|static[] |
||
| 78 | */ |
||
| 79 | public function mostViewed($count = 7) |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @ver 5.1.13 |
||
| 86 | * @date 19/03/2018 |
||
| 87 | * @return mixed |
||
| 88 | */ |
||
| 89 | public function uniqueCreators() |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @ver 5.1.14 |
||
| 96 | * @date 19/03/2018 |
||
| 97 | * @return mixed |
||
| 98 | */ |
||
| 99 | public function viewable() |
||
| 103 | |||
| 104 | /** |
||
| 105 | * @param int $count |
||
| 106 | * @return \Illuminate\Contracts\Pagination\Paginator |
||
| 107 | */ |
||
| 108 | public function paginateLatest(int $count) |
||
| 112 | |||
| 113 | /** |
||
| 114 | * @ver 5.1.13 |
||
| 115 | * @date 19/03/2018 |
||
| 116 | * @return mixed |
||
| 117 | */ |
||
| 118 | public function activeCategories() |
||
| 122 | |||
| 123 | /** |
||
| 124 | * @ver 5.1.15 |
||
| 125 | * @date 19/03/2018 |
||
| 126 | * @param int $creator_id |
||
| 127 | * @return int |
||
| 128 | */ |
||
| 129 | public function publishedArticlesCount(int $creator_id) |
||
| 133 | |||
| 134 | /** |
||
| 135 | * @return \Illuminate\Database\Eloquent\Collection|mixed|static[] |
||
| 136 | */ |
||
| 137 | public function whereStatusActive() |
||
| 141 | |||
| 142 | public function collectArticle(string $slug) |
||
| 146 | |||
| 147 | /** |
||
| 148 | * @param string $text |
||
| 149 | * @param int $paginate |
||
| 150 | * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator |
||
| 151 | */ |
||
| 152 | public function searchThenPaginate(string $text, int $paginate = 7) |
||
| 156 | |||
| 157 | public function whereCreatorId(int $creator_id, int $paginate = 5) |
||
| 164 | |||
| 165 | public function whereCategoryId(int $id, int $paginate = 5) |
||
| 172 | } |
||
| 173 |