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. |
|
The EnhandedImageInput constructor.
Definition at line 1121 of file controls.php. References $disabled_src, and $enabled_src. |
|
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.
Reimplemented from ControlElement. Definition at line 1143 of file controls.php. |
|
Decide whether this control should be disabled.
Reimplemented from ControlElement. Definition at line 1132 of file controls.php. |
|
The image source URL for when the image is disabled.
Definition at line 1113 of file controls.php. Referenced by EnhancedImageInput(). |
|
The image source URL for when the image is not disabled.
Definition at line 1111 of file controls.php. Referenced by EnhancedImageInput(). |