Bitrix API

Uploader

Table of Contents

Constants

EVENT_NAME  = "main_bxu"
FILE_NAME  = "bxu_files"
INFO_NAME  = "bxu_info"
SESSION_LIST  = "MFI_SESSIONS"
SESSION_TTL  = 86400

Properties

$controlId  : mixed
$files  : mixed
$params  : mixed
$script  : mixed

Methods

__construct()  : mixed
checkCanvases()  : mixed
checkPost()  : bool
deleteFile()  : mixed
getParam()  : mixed
getPaths()  : false|array<string|int, mixed>
prepareData()  : mixed
setControlId()  : mixed
setHandler()  : mixed

Constants

EVENT_NAME

public mixed EVENT_NAME = "main_bxu"

FILE_NAME

public mixed FILE_NAME = "bxu_files"

INFO_NAME

public mixed INFO_NAME = "bxu_info"

SESSION_LIST

public mixed SESSION_LIST = "MFI_SESSIONS"

SESSION_TTL

public mixed SESSION_TTL = 86400

Properties

$controlId

public mixed $controlId = "fileUploader"

$params

public mixed $params = array("allowUpload" => "A", "allowUploadExt" => "", "copies" => array("default" => array("width" => null, "height" => null)), "storage" => array("moduleId" => "main", "cloud" => false))

Methods

__construct()

public __construct([mixed $params = array() ]) : mixed
Parameters
$params : mixed = array()

checkCanvases()

public checkCanvases(mixed $hash, mixed &$file[, array<string|int, mixed> $canvases = array() ][, array<string|int, mixed> $watermark = array() ]) : mixed
Parameters
$hash : mixed
$file : mixed
$canvases : array<string|int, mixed> = array()
$watermark : array<string|int, mixed> = array()

checkPost()

public checkPost([bool $checkPost = true ]) : bool
Parameters
$checkPost : bool = true

Flag for check post.

Return values
bool

deleteFile()

public deleteFile(mixed $hash) : mixed
Parameters
$hash : mixed

getParam()

public getParam(string $key) : mixed
Parameters
$key : string

getPaths()

public static getPaths(string $tmpName) : false|array<string|int, mixed>
Parameters
$tmpName : string
Return values
false|array<string|int, mixed>

prepareData()

public static prepareData(mixed $data) : mixed
Parameters
$data : mixed

setControlId()

public setControlId(mixed $controlId) : mixed
Parameters
$controlId : mixed

setHandler()

public setHandler(mixed $name, mixed $callback) : mixed
Parameters
$name : mixed
$callback : mixed

        
On this page

Search results