1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс File
Граф наследования:File:
Base

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

static getPostWithFiles (array $post, array $files)
static loadInfo ($value)
static loadInfoSingle ($file)
static isDeletedSingle ($value)
static isUploadedSingle ($value)
static isMultiple ($value)
static getViewHtmlSingle (array $input, $value)
static getFilterEditHtml ($name, array $input, $value)
static getEditHtmlSingle ($name, array $input, $value)
static getEditHtmlSingleDelete ($name, array $input)
static getErrorSingle (array $input, $value)
static getValueSingle (array $input, $value)
static getSettings (array $input, $reload)
Открытые статические члены унаследованные от Base
static asSingle ($value)
static asMultiple ($value)
static getViewHtml (array $input, $value=null)
static getEditHtml ($name, array $input, $value=null)
static getEditHtmlInsert ($tag, $replace, $name, $sample, $after)
static getEditHtmlSingleAfterInsert ()
static getError (array $input, $value)
static getRequiredError (array $input, $value)
static getValue (array $input, $value)
static hasMultipleValuesSupport ()

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

Поля данных унаследованные от Base
const MULTITAG = 'div'
Защищенные статические члены унаследованные от Base
static getHiddenRecursive ($name, $value, $attributes)
static extractAttributes (array $input, array $boolean, array $other, $withGlobal=true)

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

File Must use: File::getPostWithFiles before using this type!

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

Методы

◆ getEditHtmlSingle()

getEditHtmlSingle ( $name,
array $input,
$value )
static
Возвращает
string

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

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

◆ getEditHtmlSingleDelete()

getEditHtmlSingleDelete ( $name,
array $input )
static

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

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

◆ getErrorSingle()

getErrorSingle ( array $input,
$value )
static
Аргументы
array$input
$value
Исключения
SystemException

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

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

◆ getFilterEditHtml()

getFilterEditHtml ( $name,
array $input,
$value )
static
Аргументы
$name
array$input
$value
Возвращает
string

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

◆ getPostWithFiles()

getPostWithFiles ( array $post,
array $files )
static

Normalize $_FILES structure and join it with $_POST. Must be called before using File type!

PHP default $_FILES structure:

Array([name] => Array([0] => photo.jpg , [1] => ) [type] => Array([0] => image/jpeg , [1] => ) [tmp_name] => Array([0] => /tmp/dsk4le5se, [1] => ) [error] => Array([0] => 0 , [1] => 4) [size] => Array([0] => 45673 , [1] => 0))

Normalized files structure:

Array( [0] => Array( [name] => photo.jpg [type] => image/jpeg [tmp_name] => /tmp/dsk4le5se [error] => 0 [size] => 45673 ) [1] => Array( [name] => [type] => [tmp_name] => [error] => 4 [size] => ) )

Example: <input type="file" name="PROFILE[5][PHOTOS][]"> - will be normalized as expected in post

Аргументы
array$post- $_POST
array$files- $_FILES
Возвращает
array - post + fixed files

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

◆ getSettings()

getSettings ( array $input,
$reload )
static

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

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

◆ getValueSingle()

getValueSingle ( array $input,
$value )
static

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

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

◆ getViewHtmlSingle()

getViewHtmlSingle ( array $input,
$value )
static

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

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

◆ isDeletedSingle()

isDeletedSingle ( $value)
static

Check if file is marked for deletion.

Аргументы
$value
Возвращает
bool

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

◆ isMultiple()

isMultiple ( $value)
static

Check if value is multiple.

Аргументы
$value
Возвращает
bool

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

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

◆ isUploadedSingle()

isUploadedSingle ( $value)
static

Check if file is uploaded.

Аргументы
$value
Возвращает
bool

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

◆ loadInfo()

loadInfo ( $value)
static
Аргументы
$value
Возвращает
array - file array

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

◆ loadInfoSingle()

loadInfoSingle ( $file)
static

deprecated

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/sale/lib/internals/input.php