Iframe
class Iframe extends TemplateGenerator
Properties
protected array | $attributes | from TemplateGenerator | |
protected array | $defaultAttributes | from TemplateGenerator | |
protected array | $defaultIframeAttributes | ||
protected string[] | $iframeAttributes |
Methods
Build the template representing the embedded content
Build a template based on a list of attributes
Format an attribute value to be used in an XPath expression
Generate xsl:attributes elements from an array
Generate a CSS declaration based on an array of CSS properties
Generate and return the padding declaration used in the responsive wrapper
Generate and return a responsive template for the embedded content
Generate and return a template for the embedded content, complete with a responsive wrapper
Merge two array of attributes
Test whether current template needs a wrapper to be responsive
Filter the attributes to keep only those that can be used in an iframe
Details
at line 32
protected string
getContentTemplate()
Build the template representing the embedded content
in
TemplateGenerator at line 42
string
getTemplate(array $attributes)
Build a template based on a list of attributes
in
TemplateGenerator at line 55
protected string
expr(string $expr)
Format an attribute value to be used in an XPath expression
in
TemplateGenerator at line 68
protected string
generateAttributes(array $attributes)
Generate xsl:attributes elements from an array
in
TemplateGenerator at line 93
protected string
generateStyle(array $properties)
Generate a CSS declaration based on an array of CSS properties
in
TemplateGenerator at line 111
protected string
getResponsivePadding()
Generate and return the padding declaration used in the responsive wrapper
in
TemplateGenerator at line 141
protected string
getUnwrappedTemplate()
Generate and return a responsive template for the embedded content
in
TemplateGenerator at line 170
protected string
getWrappedTemplate()
Generate and return a template for the embedded content, complete with a responsive wrapper
in
TemplateGenerator at line 193
protected bool
hasDynamicHeight()
Test whether current template has a dynamic height
in
TemplateGenerator at line 203
protected bool
hasDynamicWidth()
Test whether current template has a dynamic width
in
TemplateGenerator at line 215
protected array
mergeAttributes(array $defaultAttributes, array $newAttributes)
Merge two array of attributes
in
TemplateGenerator at line 232
protected bool
needsWrapper()
Test whether current template needs a wrapper to be responsive
at line 44
protected array
getFilteredAttributes()
Filter the attributes to keep only those that can be used in an iframe