Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс DiskFile
+ Граф наследования:DiskFile:

Открытые члены

 getDefaultPreFilters ()
 
 downloadAction (string $scope, int $blockId, int $fileId)
 
 viewAction (string $scope, int $blockId, int $fileId)
 
 infoAction (int $fileId, string $scope, int $landingId)
 
- Открытые члены унаследованные от Controller
 __construct (Request $request=null)
 
 forward ($controller, string $actionName, array $parameters=null)
 
 getConfigurationOfActions ()
 
 getModuleId ()
 
 isLocatedUnderPsr4 ()
 
 getActionUri (string $actionName, array $params=[], bool $absolute=false)
 
 getUnsignedParameters ()
 
 getCurrentUser ()
 
 setCurrentUser (CurrentUser $currentUser)
 
 convertKeysToCamelCase ($data)
 
 listNameActions ()
 
 configureActions ()
 
 getAutoWiredParameters ()
 
 getPrimaryAutoWiredParameter ()
 
 getDefaultAutoWiredParameters ()
 
 getRequest ()
 
 getScope ()
 
 setScope ($scope)
 
 getSourceParametersList ()
 
 setSourceParametersList ($sourceParametersList)
 
 run ($actionName, array $sourceParametersList)
 
 finalizeResponse (Response $response)
 
 generateActionMethodName ($action)
 
 redirectTo ($url)
 
 getErrors ()
 
 getErrorByCode ($code)
 

Открытые статические члены

static getDownloadLink (string $scope, int $blockId, ?int $fileId=null)
 
- Открытые статические члены унаследованные от Controller
static className ()
 
static getFullEventName ($eventName)
 

Дополнительные унаследованные члены

- Открытые атрибуты унаследованные от Controller
const SCOPE_REST = 'rest'
 
const SCOPE_AJAX = 'ajax'
 
const SCOPE_CLI = 'cli'
 
const EVENT_ON_BEFORE_ACTION = 'onBeforeAction'
 
const EVENT_ON_AFTER_ACTION = 'onAfterAction'
 
const ERROR_REQUIRED_PARAMETER = 'MAIN_CONTROLLER_22001'
 
const ERROR_UNKNOWN_ACTION = 'MAIN_CONTROLLER_22002'
 
const EXCEPTION_UNKNOWN_ACTION = 22002
 
- Открытые атрибуты унаследованные от Controllerable
const METHOD_ACTION_SUFFIX = 'Action'
 
- Защищенные члены унаследованные от Controller
 init ()
 
 getFilePath ()
 
 processUnsignedParameters ()
 
 getSaltToUnsign ()
 
 writeToLogException (\Throwable $e)
 
 collectDebugInfo ()
 
 logDebugInfo ()
 
 prepareParams ()
 
 processBeforeAction (Action $action)
 
 shouldDecodePostData (Action $action)
 
 decodePostData ()
 
 triggerOnBeforeAction (Action $action)
 
 processAfterAction (Action $action, $result)
 
 triggerOnAfterAction (Action $action, $result)
 
 create ($actionName)
 
 buildActionInstance ($actionName, array $config)
 
 existsAction ($actionName)
 
 getDefaultPostFilters ()
 
 buildFilters (array $config=null)
 
 appendFilters (array $filters, array $filtersToAppend)
 
 removeFilters (array $filters, array $filtersToRemove)
 
 detachFilters (Action $action)
 
 detachPreFilters (Action $action)
 
 detachPostFilters (Action $action)
 
 getActionConfig ($actionName)
 
 setActionConfig ($actionName, array $config=null)
 
 runProcessingThrowable (\Throwable $throwable)
 
 runProcessingException (\Exception $e)
 
 runProcessingError (\Error $error)
 
 runProcessingBinderThrowable (BinderArgumentException $e)
 
 buildErrorFromException (\Exception $e)
 
 buildErrorFromPhpError (\Error $error)
 
 runProcessingIfUserNotAuthorized ()
 
 runProcessingIfInvalidCsrfToken ()
 
 addError (Error $error)
 
 addErrors (array $errors)
 
- Защищенные данные унаследованные от Controller
 $errorCollection
 
 $request
 
Configurator $configurator
 

Подробное описание

См. определение в файле diskfile.php строка 12

Методы

◆ downloadAction()

downloadAction ( string $scope,
int $blockId,
int $fileId )

Downloads file after check permissions.

Аргументы
string$scopeScope code (site type).
int$blockIdBlock id.
int$fileIdFile id.
Возвращает
BFile|null

См. определение в файле diskfile.php строка 90

◆ getDefaultPreFilters()

getDefaultPreFilters ( )

Returns default pre-filters for action.

Возвращает
array

Переопределяет метод предка Controller.

См. определение в файле diskfile.php строка 18

◆ getDownloadLink()

static getDownloadLink ( string $scope,
int $blockId,
?int $fileId = null )
static

Returns URL for download action.

Аргументы
string$scopeScope code (site type).
int$blockIdBlock id.
int | null$fileIdFile id.
Возвращает
string

См. определение в файле diskfile.php строка 31

◆ infoAction()

infoAction ( int $fileId,
string $scope,
int $landingId )

Returns raw file info.

Аргументы
int$fileIdFile id.
Возвращает
array|null

См. определение в файле diskfile.php строка 137

◆ viewAction()

viewAction ( string $scope,
int $blockId,
int $fileId )

Returns file info for viewer after check permissions.

Аргументы
string$scopeScope code (site type).
int$blockIdBlock id.
int$fileIdFile id.
Возвращает
array|null

См. определение в файле diskfile.php строка 113