PHP Class Prado\Web\UI\ActiveControls\TActiveImage

TActiveImage allows the {@link setAlternateText AlternateText}, {@link setImageAlign ImageAlign}, {@link setImageUrl ImageUrl}, and {@link setDescriptionUrl DescriptionUrl} to be updated during a callback request.
Since: 3.1
Inheritance: extends Prado\Web\UI\WebControls\TImage, implements Prado\Web\UI\ActiveControls\IActiveControl
Datei anzeigen Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( ) Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
getActiveControl ( ) : TBaseActiveControl
setAlternateText ( $value ) Sets the alternative text to be displayed in the TImage when the image is unavailable.
setDescriptionUrl ( $value )
setImageAlign ( $value ) Sets the alignment of the image with respective to other elements on the page.
setImageUrl ( $value )

Method Details

__construct() public method

Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
public __construct ( )

getActiveControl() public method

public getActiveControl ( ) : TBaseActiveControl
return TBaseActiveControl basic active control options.

setAlternateText() public method

Sets the alternative text to be displayed in the TImage when the image is unavailable.
public setAlternateText ( $value )

setDescriptionUrl() public method

public setDescriptionUrl ( $value )

setImageAlign() public method

Possible values include: absbottom, absmiddle, baseline, bottom, left, middle, right, texttop, and top. If an empty string is passed in, imagealign attribute will not be rendered.
public setImageAlign ( $value )

setImageUrl() public method

public setImageUrl ( $value )