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
Показать файл Открыть проект

Открытые методы

Метод Описание
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