PHP Класс Horde_Themes_Image, horde

Автор: Michael Slusarz ([email protected])
Наследование: extends Horde_Themes_Element
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_dirname string The default directory name for this element type.

Открытые методы

Метод Описание
__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.

Описание методов

__get() публичный Метод

public __get ( $name )

base64ImgData() публичный статический Метод

* 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() публичный статический Метод

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
Результат string The full image tag.

Описание свойств

$_dirname защищенное свойство

The default directory name for this element type.
protected string $_dirname
Результат string