Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

EnhancedImageInput Class Reference

Inheritance diagram for EnhancedImageInput:

Inheritance graph
List of all members.

Detailed Description

An enhanced image input.

This enhances an image input to add an image URL that used when the input is disabled. This can be used, for example, to specify an image that greys out when the input is disabled.

Definition at line 1108 of file controls.php.

Public Member Functions

 EnhancedImageInput ($enabled_src, $disabled_src, $control_name=null)
 The EnhandedImageInput constructor.

 setDisabled ($disabled)
 Decide whether this control should be disabled.

 __sleep ()
 Prepare object for serialisation.


Public Attributes

 $enabled_src
 The image source URL for when the image is not disabled.

 $disabled_src
 The image source URL for when the image is disabled.


Constructor & Destructor Documentation

EnhancedImageInput::EnhancedImageInput enabled_src,
disabled_src,
control_name = null
 

The EnhandedImageInput constructor.

Parameters:
$enabled_src the image source URL for when the image is not disabled
$disabled_src the image source URL for when the image is disabled
$control_name the unique name for the control (also as appears in the HTTPD POST string)

Definition at line 1121 of file controls.php.

References $disabled_src, and $enabled_src.


Member Function Documentation

EnhancedImageInput::__sleep  ) 
 

Prepare object for serialisation.

This method is automatically called just before the object is serialised to carry out clean-up operations. See the PHP documentation at http://www.php.net/manual/en/language.oop.magic-functions.php for more information.

Returns:
an array of object property names to be serialised.

Reimplemented from ControlElement.

Definition at line 1143 of file controls.php.

EnhancedImageInput::setDisabled disabled  ) 
 

Decide whether this control should be disabled.

Parameters:
$disabled true if the control should be disabled, false otherwise
Returns:
void

Reimplemented from ControlElement.

Definition at line 1132 of file controls.php.


Member Data Documentation

EnhancedImageInput::$disabled_src
 

The image source URL for when the image is disabled.

Definition at line 1113 of file controls.php.

Referenced by EnhancedImageInput().

EnhancedImageInput::$enabled_src
 

The image source URL for when the image is not disabled.

Definition at line 1111 of file controls.php.

Referenced by EnhancedImageInput().


The documentation for this class was generated from the following file:
Generated on Mon Feb 14 11:39:51 2005 for FormControls by doxygen 1.3.5