$_uploaded
$_uploaded : boolean
Has a file been uploaded on this form submit?
Horde_Form_Type Class
isValid(\Horde_Form_Variable $var, \Horde_Variables $vars, array $value, \something $message)
\Horde_Form_Variable | $var | The Form field object to check |
\Horde_Variables | $vars | The form state to check this field for |
array | $value | The field value array - should contain a key ['hash'] which holds the key for the image on temp storage |
\something | $message | Not clear what this field does |
_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.
\Horde_Variables | $vars | The form state to check this field for |
\Horde_Form_Variable | $var | The Form field object to check |
getImage(\Horde_Variables $vars, \Horde_Form_Variable $var) : array
Returns the current image information.
\Horde_Variables | $vars | The form state to check this field for |
\Horde_Form_Variable | $var | The Form field object to check |
The current image hash.
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.
array | $image | The image array. |