PHP Класс App\Http\Controllers\ArchiveController

Наследование: extends Controller
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$category App\Repositories\CategoryRepository CategoryRepository object.
$post App\Repositories\PostRepository PostRepository object.
$tag App\Repositories\TagRepository TagRepository object.

Открытые методы

Метод Описание
__construct ( CategoryRepository $category, TagRepository $tag, PostRepository $post ) ArchiveController constructor.
groupByCategory ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Get all categories used to group posts.
groupByDate ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Get all posts grouped by create date.
groupByTag ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Get all Tags used to group posts.
showCategory ( $id ) : Illuminate\Http\RedirectResponse Redirect to categories with default category.
showTag ( $id ) : Illuminate\Http\RedirectResponse Redirect to tags with default tag.

Описание методов

__construct() публичный Метод

ArchiveController constructor.
public __construct ( CategoryRepository $category, TagRepository $tag, PostRepository $post )
$category App\Repositories\CategoryRepository
$tag App\Repositories\TagRepository
$post App\Repositories\PostRepository

groupByCategory() публичный Метод

Get all categories used to group posts.
public groupByCategory ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
Результат Illuminate\Contracts\View\Factory | Illuminate\View\View

groupByDate() публичный Метод

Get all posts grouped by create date.
public groupByDate ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
Результат Illuminate\Contracts\View\Factory | Illuminate\View\View

groupByTag() публичный Метод

Get all Tags used to group posts.
public groupByTag ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
Результат Illuminate\Contracts\View\Factory | Illuminate\View\View

showCategory() публичный Метод

Redirect to categories with default category.
public showCategory ( $id ) : Illuminate\Http\RedirectResponse
$id
Результат Illuminate\Http\RedirectResponse

showTag() публичный Метод

Redirect to tags with default tag.
public showTag ( $id ) : Illuminate\Http\RedirectResponse
$id
Результат Illuminate\Http\RedirectResponse

Описание свойств

$category защищенное свойство

CategoryRepository object.
protected CategoryRepository,App\Repositories $category
Результат App\Repositories\CategoryRepository

$post защищенное свойство

PostRepository object.
protected PostRepository,App\Repositories $post
Результат App\Repositories\PostRepository

$tag защищенное свойство

TagRepository object.
protected TagRepository,App\Repositories $tag
Результат App\Repositories\TagRepository