Property | Type | Description | |
---|---|---|---|
$xpath | DOMXPath |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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. |
abstract protected getInternalFlagFromFormatNode ( DOMNode $formatNode ) : boolean | ||
$formatNode | DOMNode | |
return | boolean |
abstract protected getKeyFromFormatNode ( DOMNode $formatNode ) : string | ||
$formatNode | DOMNode | |
return | string |
abstract protected getMetaFromFormatNode ( DOMNode $formatNode ) : array | ||
$formatNode | DOMNode | |
return | array |
protected getParametersFromNode ( DOMNode $node, string $parameterName = 'parameter' ) : array | ||
$node | DOMNode | |
$parameterName | string | |
return | array |
abstract protected getScaleFromFormatNode ( DOMNode $formatNode ) : array | ||
$formatNode | DOMNode | |
return | array |
abstract protected getTransformationsFromFormatNode ( DOMNode $formatNode ) : array | ||
$formatNode | DOMNode | |
return | array |
public setGlobalOptions ( array $globalOptions ) | ||
$globalOptions | array |