PHP 클래스 Bolt\Controller\Backend\FileManager

Prior to v3.0 this functionality primarily existed in the monolithic Bolt\Controllers\Backend class.
저자: Gawain Lynch ([email protected])
상속: extends BackendBase
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
edit ( Request $request, string $namespace, string $file ) : Response File editor.
manage ( Request $request, string $namespace, string $path ) : TemplateResponse | RedirectResponse The file management browser.

보호된 메소드들

메소드 설명
addRoutes ( Silex\ControllerCollection $c )

비공개 메소드들

메소드 설명
getCodeMirrorPlugins ( Bolt\Filesystem\Handler\FileInterface $file )
getRelatedFiles ( Bolt\Filesystem\Handler\FileInterface $file ) : Bolt\Filesystem\Handler\FileInterface[] Gather related (present) files.
handleEdit ( Symfony\Component\Form\FormInterface $form, Bolt\Filesystem\Handler\FileInterface $file ) : Symfony\Component\HttpFoundation\JsonResponse Handle a file edit POST.
handleUpload ( Symfony\Component\Form\FormInterface $form, Bolt\Filesystem\Handler\DirectoryInterface $directory ) Handle the upload POST.
processUpload ( Bolt\Filesystem\Handler\DirectoryInterface $directory, string $filename, array $fileToProcess ) Process an individual file upload.

메소드 상세

addRoutes() 보호된 메소드

protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection

edit() 공개 메소드

File editor.
public edit ( Request $request, string $namespace, string $file ) : Response
$request Symfony\Component\HttpFoundation\Request The Symfony Request
$namespace string The filesystem namespace
$file string The file path
리턴 Symfony\Component\HttpFoundation\Response

manage() 공개 메소드

The file management browser.
public manage ( Request $request, string $namespace, string $path ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
$namespace string The filesystem namespace
$path string The path prefix
리턴 Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse