PHP Класс BookStack\Http\Controllers\ChapterController

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

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

Свойство Тип Описание
$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