Свойство | Тип | Описание | |
---|---|---|---|
$serialisationJarvesCore |
Свойство | Тип | Описание | |
---|---|---|---|
$_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. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | |
Результат | mixed |
public getAdditionalAttribute ( string $key ) : mixed | ||
$key | string | |
Результат | mixed |
public getDirectChild ( string $tag ) : DOMElement | ||
$tag | string | |
Результат | DOMElement |
public getDirectChildren ( string $tag ) : DOMElement[] | ||
$tag | string | |
Результат | DOMElement[] |
public getMethodMetaData ( ReflectionMethod | ReflectionClass $reflection ) : array | boolean | ||
$reflection | ReflectionMethod | ReflectionClass | |
Результат | array | boolean |
public importNode ( DOMNode $element ) : array | ||
$element | DOMNode | |
Результат | array | imported properties |
public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | |
Результат | boolean |
public parsePhpDoc ( string $string ) : array | ||
$string | string | |
Результат | 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 | ||
Результат | mixed |
public setAttributeVar ( string $variableName ) | ||
$variableName | string |
protected array $additionalAttributes | ||
Результат | array |
protected array $additionalNodes | ||
Результат | array |
protected array $arrayIndexNames | ||
Результат | array |
protected ConfigCacheClass[] $arrayKey | ||
Результат | ConfigCacheClass[] |
protected array $attributes | ||
Результат | array |
protected string $docBlock | ||
Результат | string |
protected array $docBlocks | ||
Результат | array |
protected DOMElement $element | ||
Результат | DOMElement |
protected ConfigCacheClass[] $elementToArray | ||
Результат | ConfigCacheClass[] |
protected array $excludeDefaults | ||
Результат | array |
protected string $nodeValueVar | ||
Результат | string |
protected string[] $requiredProperties | ||
Результат | string[] |
protected string $rootName | ||
Результат | string |