PHP Class Horde_Themes_Image, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Themes_Element
Datei anzeigen Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_dirname string The default directory name for this element type.

Public Methods

Method Description
__get ( $name )
base64ImgData ( $in, $limit = null ) * Generate RFC 2397-compliant image data strings.
tag ( mixed $src, array $opts = [] ) : string Constructs a correctly-pathed tag to an image.

Method Details

__get() public method

public __get ( $name )

base64ImgData() public static method

* Generate RFC 2397-compliant image data strings.
public static base64ImgData ( $in, $limit = null )
$in URI or Horde_Themes_Image object containing image data.
$limit Sets a hard size limit for image data; if exceeded, will not string encode.

tag() public static method

Constructs a correctly-pathed tag to an image.
public static tag ( mixed $src, array $opts = [] ) : string
$src mixed The image file (either a string or a Horde_Themes_Image object).
$opts array Additional options: - alt: (string) Text describing the image. - attr: (mixed) Any additional attributes for the image tag. Can be a pre-built string or an array of key/value pairs that will be assembled and html-encoded. - fullsrc: (boolean) TODO - imgopts: (array) TODO
return string The full image tag.

Property Details

$_dirname protected_oe property

The default directory name for this element type.
protected string $_dirname
return string