class SvgDocumentViewer (View source)

Properties

protected $imagePath
protected $attributes
protected $asObject
protected $imageUrl
static protected $allowedAttributes

Methods

__construct(string $imagePath, array $attributes = [], boolean $asObject = false, string $imageUrl = "")

No description

string
getContent()

Get SVG string to be used inside HTML content.

array
getAllowedAttributes()

No description

string
getInlineSvg()

No description

string
injectAttributes(string $svg)

No description

getObjectSvg()

No description

Details

__construct(string $imagePath, array $attributes = [], boolean $asObject = false, string $imageUrl = "")

Parameters

string $imagePath
array $attributes
boolean $asObject Default false
string $imageUrl Only needed if you set $asObject to true.

string getContent()

Get SVG string to be used inside HTML content.

Return Value

string

protected array getAllowedAttributes()

Return Value

array

protected string getInlineSvg()

Return Value

string

protected string injectAttributes(string $svg)

Parameters

string $svg

Return Value

string

protected getObjectSvg()