Метод |
Описание |
|
__construct ( PageRepo $pageRepo, BookRepo $bookRepo, ChapterRepo $chapterRepo, ExportService $exportService, UserRepo $userRepo ) |
PageController constructor. |
|
create ( string $bookSlug, string $chapterSlug = null ) : Response |
Show the form for creating a new page. |
|
createAsGuest ( Illuminate\Http\Request $request, string $bookSlug, string | null $chapterSlug = null ) : mixed |
Create a new page as a guest user. |
|
destroy ( string $bookSlug, string $pageSlug ) : Response |
Remove the specified page from storage. |
|
destroyDraft ( string $bookSlug, integer $pageId ) : Response |
Remove the specified draft page from storage. |
|
edit ( string $bookSlug, string $pageSlug ) : Response |
Show the form for editing the specified page. |
|
editDraft ( string $bookSlug, integer $pageId ) : Illuminate\Contracts\View\Factory | Illuminate\View\View |
Show form to continue editing a draft page. |
|
exportHtml ( string $bookSlug, string $pageSlug ) : Illuminate\Http\Response |
Export a page to a self-contained HTML file. |
|
exportPdf ( string $bookSlug, string $pageSlug ) : Illuminate\Http\Response |
Exports a page to pdf format using barryvdh/laravel-dompdf wrapper. |
|
exportPlainText ( string $bookSlug, string $pageSlug ) : Illuminate\Http\Response |
Export a page to a simple plaintext .txt file. |
|
getPageAjax ( integer $pageId ) : Illuminate\Http\JsonResponse |
Get page from an ajax request. |
|
move ( string $bookSlug, string $pageSlug, Illuminate\Http\Request $request ) : mixed |
Does the action of moving the location of a page |
|
redirectFromLink ( integer $pageId ) : Illuminate\Http\RedirectResponse | Redirector |
Redirect from a special link url which
uses the page id rather than the name. |
|
restoreRevision ( string $bookSlug, string $pageSlug, integer $revisionId ) : Illuminate\Http\RedirectResponse | Redirector |
Restores a page using the content of the specified revision. |
|
restrict ( string $bookSlug, string $pageSlug, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector |
Set the permissions for this page. |
|
saveDraft ( Illuminate\Http\Request $request, integer $pageId ) : Illuminate\Http\JsonResponse |
Save a draft update as a revision. |
|
show ( string $bookSlug, string $pageSlug ) : Response |
Display the specified page. |
|
showDelete ( string $bookSlug, string $pageSlug ) : Illuminate\View\View |
Show the deletion page for the specified page. |
|
showDeleteDraft ( string $bookSlug, integer $pageId ) : Illuminate\View\View |
Show the deletion page for the specified page. |
|
showMove ( string $bookSlug, string $pageSlug ) : mixed |
Show the view to choose a new parent to move a page into. |
|
showRecentlyCreated ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View |
Show a listing of recently created pages |
|
showRecentlyUpdated ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View |
Show a listing of recently created pages |
|
showRestrict ( string $bookSlug, string $pageSlug ) : Illuminate\Contracts\View\Factory | Illuminate\View\View |
Show the Restrictions view. |
|
showRevision ( string $bookSlug, string $pageSlug, integer $revisionId ) : Illuminate\View\View |
Shows a preview of a single revision |
|
showRevisionChanges ( string $bookSlug, string $pageSlug, integer $revisionId ) : Illuminate\View\View |
Shows the changes of a single revision |
|
showRevisions ( string $bookSlug, string $pageSlug ) : Illuminate\View\View |
Shows the last revisions for this page. |
|
store ( Illuminate\Http\Request $request, string $bookSlug, $pageId ) : Response |
Store a new page by changing a draft into a page. |
|
update ( Illuminate\Http\Request $request, string $bookSlug, string $pageSlug ) : Response |
Update the specified page in storage. |
|