PHP Класс Bolt\Controller\Async\FilesystemManager

Автор: Gawain Lynch ([email protected])
Автор: Carson Full ([email protected])
Наследование: extends Bolt\Controller\Async\AsyncBase
Показать файл Открыть проект

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

Метод Описание
browse ( Request $request, string $namespace, string $path ) : TemplateResponse List browse on the server, so we can insert them in the file input.
createFile ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Create an empty file.
createFolder ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Create a new folder.
deleteFile ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Delete a file on the server.
duplicateFile ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Duplicate a file on the server.
filesAutoComplete ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Return autocomplete data for a file name.
recordBrowser ( ) : TemplateResponse List records to easily insert links through the WYSIWYG editor.
removeFolder ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Delete a folder recursively if writeable.
renameFile ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Rename a file within the files directory tree.
renameFolder ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Rename a folder within the files directory tree.

Защищенные методы

Метод Описание
addRoutes ( Silex\ControllerCollection $ctr )

Приватные методы

Метод Описание
isMatchingExtension ( string $oldName, string $newName ) : boolean Check that file extensions are not being changed.
logException ( string $message, Exception $exception ) : boolean Log an exception to the system log

Описание методов

addRoutes() защищенный Метод

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

browse() публичный Метод

List browse on the server, so we can insert them in the file input.
public browse ( Request $request, string $namespace, string $path ) : TemplateResponse
$request Symfony\Component\HttpFoundation\Request
$namespace string
$path string
Результат Bolt\Response\TemplateResponse

createFile() публичный Метод

Create an empty file.
public createFile ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

createFolder() публичный Метод

Create a new folder.
public createFolder ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

deleteFile() публичный Метод

Delete a file on the server.
public deleteFile ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

duplicateFile() публичный Метод

Duplicate a file on the server.
public duplicateFile ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

filesAutoComplete() публичный Метод

Return autocomplete data for a file name.
public filesAutoComplete ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

recordBrowser() публичный Метод

List records to easily insert links through the WYSIWYG editor.
public recordBrowser ( ) : TemplateResponse
Результат Bolt\Response\TemplateResponse

removeFolder() публичный Метод

Delete a folder recursively if writeable.
public removeFolder ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

renameFile() публичный Метод

Rename a file within the files directory tree.
public renameFile ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

renameFolder() публичный Метод

Rename a folder within the files directory tree.
public renameFolder ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse