[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/MediaEmbed/Configurator/ -> TemplateGenerator.php (summary)

(no description)

Copyright: Copyright (c) 2010-2022 The s9e authors
License: http://www.opensource.org/licenses/mit-license.php The MIT License
File Size: 236 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  getTemplate()
  expr()
  generateAttributes()
  generateStyle()
  getResponsivePadding()
  getUnwrappedTemplate()
  getWrappedTemplate()
  hasDynamicHeight()
  hasDynamicWidth()
  mergeAttributes()
  needsWrapper()

Functions
Functions that are not part of a class:

getTemplate(array $attributes)   X-Ref
Build a template based on a list of attributes

param: array  $attributes
return: string

expr($expr)   X-Ref
Format an attribute value to be used in an XPath expression

param: string $expr Original value
return: string       Formatted value

generateAttributes(array $attributes)   X-Ref
Generate xsl:attributes elements from an array

param: array  $attributes Array of [name => value] where value can be XSL code
return: string             XSL source

generateStyle(array $properties)   X-Ref
Generate a CSS declaration based on an array of CSS properties

param: array  $properties Property name => property value
return: string

getResponsivePadding()   X-Ref
Generate and return the padding declaration used in the responsive wrapper

return: string

getUnwrappedTemplate()   X-Ref
Generate and return a responsive template for the embedded content

return: string

getWrappedTemplate()   X-Ref
Generate and return a template for the embedded content, complete with a responsive wrapper

return: string

hasDynamicHeight()   X-Ref
Test whether current template has a dynamic height

return: bool

hasDynamicWidth()   X-Ref
Test whether current template has a dynamic width

return: bool

mergeAttributes(array $defaultAttributes, array $newAttributes)   X-Ref
Merge two array of attributes

param: array $defaultAttributes
param: array $newAttributes
return: array

needsWrapper()   X-Ref
Test whether current template needs a wrapper to be responsive

return: bool



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1