[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

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

(no description)

File Size: 179 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

XmlFileDefinitionCollection:: (9 methods):
  __construct()
  castConfigValue()
  castToBool()
  castToInt()
  convertValueTypes()
  flattenConfig()
  getConfigFromXmlFile()
  getElementConfig()
  getValueFromElement()


Class: XmlFileDefinitionCollection  - X-Ref


__construct($path)   X-Ref
Constructor

param: string $path Path to site definitions' dir

castConfigValue($name, $value)   X-Ref
Cast given config value to the appropriate type

param: string $name  Name of the config value
param: string $value Config value in string form
return: mixed         Config value in appropriate type

castToBool($value)   X-Ref
Cast given config value to a boolean

param: string $value
return: bool

castToInt($value)   X-Ref
Cast given config value to an integer

param: string  $value
return: integer

convertValueTypes(array $config)   X-Ref
Convert known config values to the appropriate type

Will cast properties whose name is "defaultValue" or ends in "height" or "width" to integers

param: array $config Original config
return: array         Converted config

flattenConfig(array $config)   X-Ref
Replace arrays that contain a single element with the element itself

param: array $config
return: array

getConfigFromXmlFile($filepath)   X-Ref
Extract a site's config from its XML file

param: string $filepath Path to the XML file
return: mixed

getElementConfig(DOMElement $element)   X-Ref
Extract a site's config from its XML representation

param: DOMElement $element Current node
return: mixed

getValueFromElement(DOMElement $element)   X-Ref
Extract a value from given element

param: DOMElement $element
return: mixed



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