PHP 클래스 BookStack\Http\Controllers\AttachmentController

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

보호된 프로퍼티들

프로퍼티 타입 설명
$attachment
$attachmentService
$pageRepo

공개 메소드들

메소드 설명
__construct ( AttachmentService $attachmentService, Attachment $attachment, PageRepo $pageRepo ) AttachmentController constructor.
attachLink ( Illuminate\Http\Request $request ) : mixed Attach a link to a page.
delete ( $attachmentId ) : mixed Delete a specific attachment in the system.
get ( $attachmentId ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\RedirectResponse | Redirector | Response Get an attachment from storage.
listForPage ( $pageId ) : mixed Get the attachments for a specific page.
sortForPage ( $pageId, Illuminate\Http\Request $request ) : mixed Update the attachment sorting.
update ( $attachmentId, Illuminate\Http\Request $request ) : Attachment | mixed Update the details of an existing file.
upload ( Illuminate\Http\Request $request ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\JsonResponse | Response Endpoint at which attachments are uploaded to.
uploadUpdate ( integer $attachmentId, Illuminate\Http\Request $request ) : mixed Update an uploaded attachment.

메소드 상세

__construct() 공개 메소드

AttachmentController constructor.
public __construct ( AttachmentService $attachmentService, Attachment $attachment, PageRepo $pageRepo )
$attachmentService BookStack\Services\AttachmentService
$attachment BookStack\Attachment
$pageRepo BookStack\Repos\PageRepo

delete() 공개 메소드

Delete a specific attachment in the system.
public delete ( $attachmentId ) : mixed
$attachmentId
리턴 mixed

get() 공개 메소드

Get an attachment from storage.
public get ( $attachmentId ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\RedirectResponse | Redirector | Response
$attachmentId
리턴 Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector | Symfony\Component\HttpFoundation\Response

listForPage() 공개 메소드

Get the attachments for a specific page.
public listForPage ( $pageId ) : mixed
$pageId
리턴 mixed

sortForPage() 공개 메소드

Update the attachment sorting.
public sortForPage ( $pageId, Illuminate\Http\Request $request ) : mixed
$pageId
$request Illuminate\Http\Request
리턴 mixed

update() 공개 메소드

Update the details of an existing file.
public update ( $attachmentId, Illuminate\Http\Request $request ) : Attachment | mixed
$attachmentId
$request Illuminate\Http\Request
리턴 BookStack\Attachment | mixed

upload() 공개 메소드

Endpoint at which attachments are uploaded to.
public upload ( Illuminate\Http\Request $request ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\JsonResponse | Response
$request Illuminate\Http\Request
리턴 Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\JsonResponse | Symfony\Component\HttpFoundation\Response

uploadUpdate() 공개 메소드

Update an uploaded attachment.
public uploadUpdate ( integer $attachmentId, Illuminate\Http\Request $request ) : mixed
$attachmentId integer
$request Illuminate\Http\Request
리턴 mixed

프로퍼티 상세

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

protected $attachment

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

protected $attachmentService

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

protected $pageRepo