PHP Класс Horde_Form_Type_image, horde

Наследование: extends Horde_Form_Type
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$_img array Hash containing the previously uploaded image info.
$_max_filesize integer Limit the file size?
$_random string A random id that identifies the image information in the session data.
$_show_keeporig boolean Show the option to upload also original non-modified image?
$_show_upload boolean Show the upload button?
$_uploaded boolean Has a file been uploaded on this form submit?

Открытые методы

Метод Описание
_getUpload ( Horde_Variables &$vars, Horde_Form_Variable &$var ) Gets the upload and sets up the upload data array. Either fetches an upload done with this submit or retrieves stored upload info.
about ( ) Return info about field type.
getImage ( Horde_Variables $vars, Horde_Form_Variable $var ) : array Returns the current image information.
getInfo ( &$vars, &$var, &$info )
getRandomId ( )
getUploadedFileType ( $field )
init ( $show_upload = true, $show_keeporig = false, $max_filesize = null )
isValid ( Horde_Form_Variable &$var, Horde_Variables &$vars, array $value, something &$message )
loadImageData ( array &$image ) Loads any existing image data into the image field. Requires that the array $image passed to it contains the structure: $image['load']['file'] - the filename of the image; $image['load']['data'] - the raw image data.
onSubmit ( &$var, &$vars )

Описание методов

_getUpload() публичный Метод

Gets the upload and sets up the upload data array. Either fetches an upload done with this submit or retrieves stored upload info.
public _getUpload ( Horde_Variables &$vars, Horde_Form_Variable &$var )
$vars Horde_Variables The form state to check this field for
$var Horde_Form_Variable The Form field object to check

about() публичный Метод

Return info about field type.
public about ( )

getImage() публичный Метод

Returns the current image information.
public getImage ( Horde_Variables $vars, Horde_Form_Variable $var ) : array
$vars Horde_Variables The form state to check this field for
$var Horde_Form_Variable The Form field object to check
Результат array The current image hash.

getInfo() публичный Метод

public getInfo ( &$vars, &$var, &$info )

getRandomId() публичный Метод

public getRandomId ( )

getUploadedFileType() публичный Метод

public getUploadedFileType ( $field )

init() публичный Метод

public init ( $show_upload = true, $show_keeporig = false, $max_filesize = null )

isValid() публичный Метод

public isValid ( Horde_Form_Variable &$var, Horde_Variables &$vars, array $value, something &$message )
$var Horde_Form_Variable The Form field object to check
$vars Horde_Variables The form state to check this field for
$value array The field value array - should contain a key ['hash'] which holds the key for the image on temp storage
$message something Not clear what this field does

loadImageData() публичный Метод

Loads any existing image data into the image field. Requires that the array $image passed to it contains the structure: $image['load']['file'] - the filename of the image; $image['load']['data'] - the raw image data.
public loadImageData ( array &$image )
$image array The image array.

onSubmit() публичный Метод

public onSubmit ( &$var, &$vars )

Описание свойств

$_img публичное свойство

Hash containing the previously uploaded image info.
public array $_img
Результат array

$_max_filesize публичное свойство

Limit the file size?
public int $_max_filesize
Результат integer

$_random публичное свойство

A random id that identifies the image information in the session data.
public string $_random
Результат string

$_show_keeporig публичное свойство

Show the option to upload also original non-modified image?
public bool $_show_keeporig
Результат boolean

$_show_upload публичное свойство

Show the upload button?
public bool $_show_upload
Результат boolean

$_uploaded публичное свойство

Has a file been uploaded on this form submit?
public bool $_uploaded
Результат boolean