|
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) |
|
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 () |
|
File Must use: File::getPostWithFiles before using this type!
См. определение в файле input.php строка 1294
static 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 строка 1332