PHP Class BookStack\Http\Controllers\ChapterController

Inheritance: extends Controller
ファイルを表示 Open project: ssddanbrown/bookstack

Protected Properties

Property Type Description
$bookRepo
$chapterRepo
$userRepo

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

create() public method

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

destroy() public method

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

edit() public method

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

move() public method

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

restrict() public method

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

show() public method

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

showDelete() public method

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

showMove() public method

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

showRestrict() public method

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

store() public method

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

update() public method

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

Property Details

$bookRepo protected_oe property

protected $bookRepo

$chapterRepo protected_oe property

protected $chapterRepo

$userRepo protected_oe property

protected $userRepo