PHP Класс Sulu\Bundle\MediaBundle\Media\FormatLoader\BaseXmlFormatLoader

Наследование: extends Symfony\Component\Config\Loader\FileLoader
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$xpath DOMXPath

Открытые методы

Метод Описание
getGlobalOptions ( ) : array
load ( mixed $resource, string $type = null ) : array Load formats from a xml file.
setGlobalOptions ( array $globalOptions )
supports ( mixed $resource, string $type = null ) : boolean Returns true if this class supports the given resource.

Защищенные методы

Метод Описание
getInternalFlagFromFormatNode ( DOMNode $formatNode ) : boolean For a given format node returns the internal flag of the format.
getKeyFromFormatNode ( DOMNode $formatNode ) : string For a given format node returns the key of the format.
getMetaFromFormatNode ( DOMNode $formatNode ) : array For a given format node returns the meta information of the format.
getParametersFromNode ( DOMNode $node, string $parameterName = 'parameter' ) : array For a given dom node returns an array of parameters. The xml name of the parameter tag can be passed as an argument.
getScaleFromFormatNode ( DOMNode $formatNode ) : array For a given format node returns the scale information of the format.
getTransformationsFromFormatNode ( DOMNode $formatNode ) : array For a given format node returns the transformations for it.

Приватные методы

Метод Описание
addFormatFromFormatNode ( DOMNode $formatNode, &$formats ) For a given format node and a given array of formats, this method parses the format node to an array and adds it to the formats array.
getOptionsFromFormatNode ( DOMNode $formatNode ) : array For a given format node returns the options for it.
parseXml ( $file ) : array
tryLoad ( $file ) : DOMDocument Tries to load the DOM Document of a given image formats xml.

Описание методов

getGlobalOptions() публичный Метод

public getGlobalOptions ( ) : array
Результат array

getInternalFlagFromFormatNode() абстрактный защищенный Метод

For a given format node returns the internal flag of the format.
abstract protected getInternalFlagFromFormatNode ( DOMNode $formatNode ) : boolean
$formatNode DOMNode
Результат boolean

getKeyFromFormatNode() абстрактный защищенный Метод

For a given format node returns the key of the format.
abstract protected getKeyFromFormatNode ( DOMNode $formatNode ) : string
$formatNode DOMNode
Результат string

getMetaFromFormatNode() абстрактный защищенный Метод

For a given format node returns the meta information of the format.
abstract protected getMetaFromFormatNode ( DOMNode $formatNode ) : array
$formatNode DOMNode
Результат array

getParametersFromNode() защищенный Метод

For a given dom node returns an array of parameters. The xml name of the parameter tag can be passed as an argument.
protected getParametersFromNode ( DOMNode $node, string $parameterName = 'parameter' ) : array
$node DOMNode
$parameterName string
Результат array

getScaleFromFormatNode() абстрактный защищенный Метод

For a given format node returns the scale information of the format.
abstract protected getScaleFromFormatNode ( DOMNode $formatNode ) : array
$formatNode DOMNode
Результат array

getTransformationsFromFormatNode() абстрактный защищенный Метод

For a given format node returns the transformations for it.
abstract protected getTransformationsFromFormatNode ( DOMNode $formatNode ) : array
$formatNode DOMNode
Результат array

load() публичный Метод

Load formats from a xml file.
public load ( mixed $resource, string $type = null ) : array
$resource mixed The resource
$type string The resource type
Результат array The formats array for the given resource

setGlobalOptions() публичный Метод

public setGlobalOptions ( array $globalOptions )
$globalOptions array

supports() публичный Метод

Returns true if this class supports the given resource.
public supports ( mixed $resource, string $type = null ) : boolean
$resource mixed A resource
$type string The resource type
Результат boolean true if this class supports the given resource, false otherwise

Описание свойств

$xpath защищенное свойство

protected DOMXPath $xpath
Результат DOMXPath