class Picture extends Element (View source)

Properties

protected string $element Default element.
protected bool $isSelfClosing Whether the element is self closing.
protected string $defaultChild Default element for nested children.

Methods

__construct(array $sources = array(), $fallbackSrc, $attributes = array())

No description

static Table
create($sources = array(), $fallbackSrc = false, $attributes = array())

Static alias for constructor.

sources($sources)

No description

fallback($src)

No description

alt($alt)

No description

title($title)

No description

addClass($classes)

No description

Details

__construct(array $sources = array(), $fallbackSrc, $attributes = array())

Parameters

array $sources
$fallbackSrc
$attributes

static Table create($sources = array(), $fallbackSrc = false, $attributes = array())

Static alias for constructor.

Parameters

$sources
$fallbackSrc
$attributes

Return Value

Table

sources($sources)

Parameters

$sources

fallback($src)

Parameters

$src

alt($alt)

Parameters

$alt

title($title)

Parameters

$title

addClass($classes)

Parameters

$classes