Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Uploader

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

 __construct ($params=array())
 
 setControlId ($controlId)
 
 setHandler ($name, $callback)
 
 getParam ($key)
 
 checkPost ($checkPost=true)
 
 checkCanvases ($hash, &$file, $canvases=array(), $watermark=array())
 
 deleteFile ($hash)
 

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

static prepareData ($data)
 
static getPaths ($tmpName)
 

Открытые атрибуты

 $files = array()
 
 $controlId = "fileUploader"
 
 $params
 
 $script
 
const FILE_NAME = "bxu_files"
 
const INFO_NAME = "bxu_info"
 
const EVENT_NAME = "main_bxu"
 
const SESSION_LIST = "MFI_SESSIONS"
 
const SESSION_TTL = 86400
 

Защищенные члены

 fillRequireData ()
 
 showJsonAnswer ($result)
 
 setRequestMethodToCheck (array $methods)
 
 getRequest ($key)
 

Защищенные статические члены

static removeTmpPath ($item)
 

Защищенные данные

 $path = ""
 
 $CID = null
 
int $version = 0
 
 $mode = "view"
 
 $param = array()
 
 $requestMethods
 
 $request
 
 $http
 

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

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

Конструктор(ы)

◆ __construct()

__construct ( $params = array())

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

Методы

◆ checkCanvases()

checkCanvases ( $hash,
& $file,
$canvases = array(),
$watermark = array() )
Аргументы
$hash
$file
array$canvases
array$watermark
Возвращает
mixed

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

◆ checkPost()

checkPost ( $checkPost = true)
Аргументы
bool$checkPostFlag for check post.
Возвращает
boolean

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

◆ deleteFile()

deleteFile ( $hash)

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

◆ fillRequireData()

fillRequireData ( )
protected
Возвращает
bool
Исключения
AccessDeniedException
ArgumentOutOfRangeException
NotImplementedException

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

◆ getParam()

getParam ( $key)
Аргументы
string$key
Возвращает
mixed

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

◆ getPaths()

static getPaths ( $tmpName)
static
Аргументы
string$tmpName
Возвращает
false|array

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

◆ getRequest()

getRequest ( $key)
protected
Аргументы
string$keyArray key in request.
Возвращает
null|mixed

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

◆ prepareData()

static prepareData ( $data)
static

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

◆ removeTmpPath()

static removeTmpPath ( $item)
staticprotected

excludes real paths from array

Аргументы
$item- array
Возвращает
array

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

◆ setControlId()

setControlId ( $controlId)

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

◆ setHandler()

setHandler ( $name,
$callback )

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

◆ setRequestMethodToCheck()

setRequestMethodToCheck ( array $methods)
protected

Sets request methods to check.

Аргументы
array$methodsRequest methods array("get", "post").
Возвращает
$this

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

◆ showJsonAnswer()

showJsonAnswer ( $result)
protected

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

Данные класса

◆ $CID

$CID = null
protected

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

◆ $controlId

$controlId = "fileUploader"

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

◆ $files

$files = array()

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

◆ $http

$http
protected

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

◆ $mode

$mode = "view"
protected

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

◆ $param

$param = array()
protected

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

◆ $params

$params
Инициализатор
= array(
"allowUpload" => "A",
"allowUploadExt" => "",
"copies" => array(
"default" => array(
"width" => null,
"height" => null
),
),
"storage" => array(
"moduleId" => "main",
"cloud" => false
)
)

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

◆ $path

$path = ""
protected

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

◆ $request

$request
protected

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

◆ $requestMethods

$requestMethods
protected
Инициализатор
= array(
"get" => true,
"post" => true
)

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

◆ $script

$script

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

◆ $version

int $version = 0
protected

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

◆ EVENT_NAME

const EVENT_NAME = "main_bxu"

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

◆ FILE_NAME

const FILE_NAME = "bxu_files"

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

◆ INFO_NAME

const INFO_NAME = "bxu_info"

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

◆ SESSION_LIST

const SESSION_LIST = "MFI_SESSIONS"

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

◆ SESSION_TTL

const SESSION_TTL = 86400

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