Overview

Packages

  • Form
  • None

Classes

  • Horde_Form
  • Horde_Form_Action
  • Horde_Form_Action_conditional_enable
  • Horde_Form_Action_conditional_setvalue
  • Horde_Form_Action_ConditionalEnable
  • Horde_Form_Action_ConditionalSetValue
  • Horde_Form_Action_reload
  • Horde_Form_Action_setcursorpos
  • Horde_Form_Action_submit
  • Horde_Form_Action_sum_fields
  • Horde_Form_Action_updatefield
  • Horde_Form_Renderer
  • Horde_Form_Translation
  • Horde_Form_Type
  • Horde_Form_Type_address
  • Horde_Form_Type_addresslink
  • Horde_Form_Type_assign
  • Horde_Form_Type_boolean
  • Horde_Form_Type_captcha
  • Horde_Form_Type_category
  • Horde_Form_Type_cellphone
  • Horde_Form_Type_colorpicker
  • Horde_Form_Type_countedtext
  • Horde_Form_Type_country
  • Horde_Form_Type_creditcard
  • Horde_Form_Type_date
  • Horde_Form_Type_datetime
  • Horde_Form_Type_dblookup
  • Horde_Form_Type_description
  • Horde_Form_Type_email
  • Horde_Form_Type_emailConfirm
  • Horde_Form_Type_enum
  • Horde_Form_Type_figlet
  • Horde_Form_Type_file
  • Horde_Form_Type_header
  • Horde_Form_Type_hourminutesecond
  • Horde_Form_Type_image
  • Horde_Form_Type_int
  • Horde_Form_Type_intlist
  • Horde_Form_Type_invalid
  • Horde_Form_Type_ip6address
  • Horde_Form_Type_ipaddress
  • Horde_Form_Type_keyval_multienum
  • Horde_Form_Type_link
  • Horde_Form_Type_longtext
  • Horde_Form_Type_matrix
  • Horde_Form_Type_mlenum
  • Horde_Form_Type_monthdayyear
  • Horde_Form_Type_monthyear
  • Horde_Form_Type_multienum
  • Horde_Form_Type_number
  • Horde_Form_Type_obrowser
  • Horde_Form_Type_octal
  • Horde_Form_Type_password
  • Horde_Form_Type_passwordconfirm
  • Horde_Form_Type_pgp
  • Horde_Form_Type_phone
  • Horde_Form_Type_radio
  • Horde_Form_Type_selectfiles
  • Horde_Form_Type_set
  • Horde_Form_Type_smime
  • Horde_Form_Type_sorter
  • Horde_Form_Type_sound
  • Horde_Form_Type_spacer
  • Horde_Form_Type_stringarray
  • Horde_Form_Type_stringlist
  • Horde_Form_Type_tableset
  • Horde_Form_Type_text
  • Horde_Form_Type_time
  • Horde_Form_Variable
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Form_Type_image

Horde_Form_Type Class

Horde_Form_Type
Extended by Horde_Form_Type_image
Package: Form
Author: Robert E. Coyle robertecoyle@hotmail.com
Located at Horde/Form/Type.php
Methods summary
public
# init( mixed $show_upload = true, mixed $show_keeporig = false, mixed $max_filesize = null )

Overrides

Horde_Form_Type::init()
public
# onSubmit( mixed & $var, mixed & $vars )

Overrides

Horde_Form_Type::onSubmit()
public
# isValid( mixed & $var, mixed & $vars, mixed $value, mixed & $message )

Overrides

Horde_Form_Type::isValid()
public
# getInfo( mixed & $vars, mixed & $var, mixed & $info )

Overrides

Horde_Form_Type::getInfo()
public
# _getUpload( mixed & $vars, mixed & $var )

Gets the upload and sets up the upload data array. Either fetches an upload done with this submit or retries stored upload info.

Gets the upload and sets up the upload data array. Either fetches an upload done with this submit or retries stored upload info.

public
# getUploadedFileType( mixed $field )
public array
# getImage( mixed $vars, mixed $var )

Returns the current image information.

Returns the current image information.

Returns

array
The current image hash.
public
# 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.

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.

Parameters

$image
The image array.
public
# getRandomId( )
public
# about( )

Return info about field type.

Return info about field type.

Methods inherited from Horde_Form_Type
__get(), __set(), getProperty(), getTypeName(), getValues(), setProperty()
Properties summary
public boolean $_uploaded

Has a file been uploaded on this form submit?

Has a file been uploaded on this form submit?

# null
public boolean $_show_upload

Show the upload button?

Show the upload button?

# true
public boolean $_show_keeporig

Show the option to upload also original non-modified image?

Show the option to upload also original non-modified image?

# false
public integer $_max_filesize

Limit the file size?

Limit the file size?

# null
public array $_img

Hash containing the previously uploaded image info.

Hash containing the previously uploaded image info.

#
public string $_random

A random id that identifies the image information in the session data.

A random id that identifies the image information in the session data.

#
API documentation generated by ApiGen