Свойство | Type | Description | |
---|---|---|---|
$_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? |
Méthode | Description | |
---|---|---|
_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 ) |
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 |
public init ( $show_upload = true, $show_keeporig = false, $max_filesize = null ) |
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 |
public loadImageData ( array &$image ) | ||
$image | array | The image array. |
public array $_img | ||
Résultat | array |
public string $_random | ||
Résultat | string |
public bool $_show_keeporig | ||
Résultat | boolean |
public bool $_uploaded | ||
Résultat | boolean |