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, array $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())

No description

Parameters

array $sources
$fallbackSrc
$attributes

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

Static alias for constructor.

Parameters

$sources
$fallbackSrc
array $attributes

Return Value

Table

sources($sources)

No description

Parameters

$sources

fallback($src)

No description

Parameters

$src

alt($alt)

No description

Parameters

$alt

title($title)

No description

Parameters

$title

addClass($classes)

No description

Parameters

$classes