PHP Class BookStack\Http\Controllers\ChapterController

Inheritance: extends Controller
Afficher le fichier Open project: ssddanbrown/bookstack

Protected Properties

Свойство Type Description
$bookRepo
$chapterRepo
$userRepo

Méthodes publiques

Méthode 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 méthode

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

create() public méthode

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

destroy() public méthode

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

edit() public méthode

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

move() public méthode

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

restrict() public méthode

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

show() public méthode

Display the specified chapter.
public show ( $bookSlug, $chapterSlug ) : Response
$bookSlug
$chapterSlug
Résultat Response

showDelete() public méthode

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

showMove() public méthode

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

showRestrict() public méthode

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

store() public méthode

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

update() public méthode

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

Property Details

$bookRepo protected_oe property

protected $bookRepo

$chapterRepo protected_oe property

protected $chapterRepo

$userRepo protected_oe property

protected $userRepo