PHP 클래스 App\Http\Controllers\ArchiveController

상속: extends Controller
파일 보기 프로젝트 열기: forehalo/materialize-blog

보호된 프로퍼티들

프로퍼티 타입 설명
$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