Свойство | Type | Description | |
---|---|---|---|
$serialisationJarvesCore |
Свойство | Type | Description | |
---|---|---|---|
$_defaultProperties | |||
$_excludeFromExport | array | ||
$_modelProperties | |||
$additionalAttributes | array | Contains the additional (not defined properties) attributes. | |
$additionalNodes | array | Contains the additional (not defined properties) children nodes. | |
$arrayIndexNames | array | Scenario:
ConfigClass =>
protected $modules; //@var array
protected $arrayIndexNames = ['modules' => 'module'];
Resulted xml:
|
|
$arrayKey | ConfigCacheClass[] | Scenario:
ConfigClass =>
protected $caches; //@var ConfigCacheClass[]
ConfigCacheClass =>
protected $id;
protected $value;
protected $arrayKey => 'id';
ConfigClass->propertyToArray('caches') -> array(' |
|
$attributes | array | Defines which values are attributes of the |
|
$docBlock | string | Defines a comment for the root element. | |
$docBlocks | array | Example: ['caches' => 'blabla'] | |
$element | DOMElement | The element passed in constructor. | |
$elementToArray | ConfigCacheClass[] | Scenario:
|
|
$excludeDefaults | array | Defines which properties should be excluded when they have the default value. | |
$jarves | |||
$lastRootElementComment | |||
$nodeValueVar | string | Defines which property is used as the nodeValue. | |
$requiredProperties | string[] | A list of property names that are required and can no be ommited or be null. | |
$rootName | string | The name of the element of this class. |
Méthode | Description | |
---|---|---|
__construct ( DOMElement | array | string $values = null, |
||
__sleep ( ) | ||
__toString ( ) : string | ||
__wakeup ( ) | } | |
appendXml ( DOMNode $node, boolean $printDefaults = false, boolean $printComments = false ) : DOMElement | Appends the xml structure with our values. | |
appendXmlProperty ( string $key, DOMNode $parentNode, boolean $printDefaults = false, boolean $printComments = false ) : DOMNode | void | ||
appendXmlValue ( string $key, mixed $value, DOMNode $node, boolean $arrayType = false, boolean $printDefaults = false, boolean $printComments = false ) : DOMNode | Appends the xm structure with the given values. | |
bool ( mixed $val ) : boolean | ||
canPropertyBeExported ( $key ) | ||
extractExtraNodes ( DOMNode $child, array &$options ) | ||
fromArray ( mixed $values, string $arrayKeyValue = null ) | ||
getAdditional ( string $key ) : mixed | ||
getAdditionalAttribute ( string $key ) : mixed | ||
getArrayKey ( ) | ||
getArrayKeyValue ( ) | ||
getClass ( ) : string | ||
getDirectChild ( string $tag ) : DOMElement | ||
getDirectChildren ( string $tag ) : DOMElement[] | ||
getDocBlock ( ) : string | ||
getDocBlocks ( ) : array | ||
getElement ( ) : DOMElement | ||
getElementArrayName ( $property ) | ||
getJarves ( ) : |
||
getMethodMetaData ( ReflectionMethod | ReflectionClass $reflection ) : array | boolean | ||
getNamespacePath ( ) | ||
getParameterValues ( string $element = 'parameters', string $childrenElement = 'parameter', string $keyName = 'id' ) : array |
|
|
getPropertyDescription ( string $property ) : null | string | ||
getRootName ( ) : string | ||
importNode ( DOMNode $element ) : array | ||
initialize ( $values = null, $jarves = null ) | ||
offsetExists ( mixed $offset ) : boolean | ||
offsetGet ( mixed $offset ) : mixed | ||
offsetSet ( mixed $offset, mixed $value ) | ||
offsetUnset ( mixed $offset ) | ||
parsePhpDoc ( string $string ) : array | Parse phpDoc string and returns an array. | |
propertyFromArray ( string $key, mixed $value ) | ||
propertyToArray ( string $k, $printDefaults = false ) : mixed | ||
save ( string $path, boolean $withDefaults = false ) : boolean | Saves the xml into a file. | |
setArrayKeyValue ( $value ) | ||
setAttributeVar ( string $variableName ) | ||
setElement ( DOMElement $element ) | ||
setJarves ( |
||
setVar ( string $variableName ) | ||
setupObject ( $jarves = null ) | Initialize the object. | |
toArray ( boolean $printDefaults = false ) : array | ||
toXml ( boolean $printDefaults = false, boolean $printComments = false ) : string | Generates a XML string with all current values. |
Méthode | Description | |
---|---|---|
checkRequirements ( ) | Checks $this->requiredProperties and throws a exception when not met |
public __construct ( DOMElement | array | string $values = null, |
||
$values | DOMElement | array | string | |
$jarves |
protected checkRequirements ( ) |
public extractExtraNodes ( DOMNode $child, array &$options ) | ||
$child | DOMNode | |
$options | array |
public getAdditional ( string $key ) : mixed | ||
$key | string | |
Résultat | mixed |
public getAdditionalAttribute ( string $key ) : mixed | ||
$key | string | |
Résultat | mixed |
public getDirectChild ( string $tag ) : DOMElement | ||
$tag | string | |
Résultat | DOMElement |
public getDirectChildren ( string $tag ) : DOMElement[] | ||
$tag | string | |
Résultat | DOMElement[] |
public getMethodMetaData ( ReflectionMethod | ReflectionClass $reflection ) : array | boolean | ||
$reflection | ReflectionMethod | ReflectionClass | |
Résultat | array | boolean |
public importNode ( DOMNode $element ) : array | ||
$element | DOMNode | |
Résultat | array | imported properties |
public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | |
Résultat | boolean |
public parsePhpDoc ( string $string ) : array | ||
$string | string | |
Résultat | array |
public propertyFromArray ( string $key, mixed $value ) | ||
$key | string | |
$value | mixed |
public propertyToArray ( string $k, $printDefaults = false ) : mixed | ||
$k | string | name of the property |
$printDefaults | ||
Résultat | mixed |
public setAttributeVar ( string $variableName ) | ||
$variableName | string |
protected array $additionalAttributes | ||
Résultat | array |
protected array $additionalNodes | ||
Résultat | array |
protected array $arrayIndexNames | ||
Résultat | array |
protected ConfigCacheClass[] $arrayKey | ||
Résultat | ConfigCacheClass[] |
protected array $attributes | ||
Résultat | array |
protected string $docBlock | ||
Résultat | string |
protected array $docBlocks | ||
Résultat | array |
protected DOMElement $element | ||
Résultat | DOMElement |
protected ConfigCacheClass[] $elementToArray | ||
Résultat | ConfigCacheClass[] |
protected array $excludeDefaults | ||
Résultat | array |
protected string $nodeValueVar | ||
Résultat | string |
protected string[] $requiredProperties | ||
Résultat | string[] |
protected string $rootName | ||
Résultat | string |