PHP 클래스 BookStack\Http\Controllers\ChapterController

상속: extends Controller
파일 보기 프로젝트 열기: ssddanbrown/bookstack

보호된 프로퍼티들

프로퍼티 타입 설명
$bookRepo
$chapterRepo
$userRepo

공개 메소드들

메소드 설명
__construct ( BookRepo $bookRepo, ChapterRepo $chapterRepo, UserRepo $userRepo ) ChapterController constructor.
create ( $bookSlug ) : Response Show the form for creating a new chapter.
destroy ( $bookSlug, $chapterSlug ) : Response Remove the specified chapter from storage.
edit ( $bookSlug, $chapterSlug ) : Response Show the form for editing the specified chapter.
move ( $bookSlug, $chapterSlug, Illuminate\Http\Request $request ) : mixed Perform the move action for a chapter.
restrict ( $bookSlug, $chapterSlug, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector Set the restrictions for this chapter.
show ( $bookSlug, $chapterSlug ) : Response Display the specified chapter.
showDelete ( $bookSlug, $chapterSlug ) : Illuminate\View\View Shows the page to confirm deletion of this chapter.
showMove ( $bookSlug, $chapterSlug ) : mixed Show the page for moving a chapter.
showRestrict ( $bookSlug, $chapterSlug ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Show the Restrictions view.
store ( $bookSlug, Illuminate\Http\Request $request ) : Response Store a newly created chapter in storage.
update ( Illuminate\Http\Request $request, $bookSlug, $chapterSlug ) : Response Update the specified chapter in storage.

메소드 상세

__construct() 공개 메소드

ChapterController constructor.
public __construct ( BookRepo $bookRepo, ChapterRepo $chapterRepo, UserRepo $userRepo )
$bookRepo BookStack\Repos\BookRepo
$chapterRepo BookStack\Repos\ChapterRepo
$userRepo BookStack\Repos\UserRepo

create() 공개 메소드

Show the form for creating a new chapter.
public create ( $bookSlug ) : Response
$bookSlug
리턴 Response

destroy() 공개 메소드

Remove the specified chapter from storage.
public destroy ( $bookSlug, $chapterSlug ) : Response
$bookSlug
$chapterSlug
리턴 Response

edit() 공개 메소드

Show the form for editing the specified chapter.
public edit ( $bookSlug, $chapterSlug ) : Response
$bookSlug
$chapterSlug
리턴 Response

move() 공개 메소드

Perform the move action for a chapter.
public move ( $bookSlug, $chapterSlug, Illuminate\Http\Request $request ) : mixed
$bookSlug
$chapterSlug
$request Illuminate\Http\Request
리턴 mixed

restrict() 공개 메소드

Set the restrictions for this chapter.
public restrict ( $bookSlug, $chapterSlug, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector
$bookSlug
$chapterSlug
$request Illuminate\Http\Request
리턴 Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

show() 공개 메소드

Display the specified chapter.
public show ( $bookSlug, $chapterSlug ) : Response
$bookSlug
$chapterSlug
리턴 Response

showDelete() 공개 메소드

Shows the page to confirm deletion of this chapter.
public showDelete ( $bookSlug, $chapterSlug ) : Illuminate\View\View
$bookSlug
$chapterSlug
리턴 Illuminate\View\View

showMove() 공개 메소드

Show the page for moving a chapter.
public showMove ( $bookSlug, $chapterSlug ) : mixed
$bookSlug
$chapterSlug
리턴 mixed

showRestrict() 공개 메소드

Show the Restrictions view.
public showRestrict ( $bookSlug, $chapterSlug ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$bookSlug
$chapterSlug
리턴 Illuminate\Contracts\View\Factory | Illuminate\View\View

store() 공개 메소드

Store a newly created chapter in storage.
public store ( $bookSlug, Illuminate\Http\Request $request ) : Response
$bookSlug
$request Illuminate\Http\Request
리턴 Response

update() 공개 메소드

Update the specified chapter in storage.
public update ( Illuminate\Http\Request $request, $bookSlug, $chapterSlug ) : Response
$request Illuminate\Http\Request
$bookSlug
$chapterSlug
리턴 Response

프로퍼티 상세

$bookRepo 보호되어 있는 프로퍼티

protected $bookRepo

$chapterRepo 보호되어 있는 프로퍼티

protected $chapterRepo

$userRepo 보호되어 있는 프로퍼티

protected $userRepo