PHP Class Neos\Neos\Service\VieSchemaBuilder

Example schema: http://schema.rdfs.org/all.json
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$configuration object
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$properties array
$superTypeConfiguration array
$types array

Méthodes publiques

Méthode Description
generateVieSchema ( ) : object Converts the nodes types to a fully structured array in the same structure as the schema to be created.

Méthodes protégées

Méthode Description
addProperty ( string $nodeType, string $propertyName, array $propertyConfiguration ) : void Adds a property to the list of known properties
getAllAncestors ( string $type ) : array Return all ancestors of a node type
getAllSubtypes ( string $type ) : array Return all sub node types of a node type (recursively)
readNodeTypeConfiguration ( string $nodeTypeName, NodeType $nodeType ) : void
removeUndeclaredTypes ( array &$configuration ) : void Cleans up all types which are not know in given configuration array

Method Details

addProperty() protected méthode

Adds a property to the list of known properties
protected addProperty ( string $nodeType, string $propertyName, array $propertyConfiguration ) : void
$nodeType string
$propertyName string
$propertyConfiguration array
Résultat void

generateVieSchema() public méthode

The schema also includes abstract node types for the full inheritance information in VIE.
public generateVieSchema ( ) : object
Résultat object

getAllAncestors() protected méthode

Return all ancestors of a node type
protected getAllAncestors ( string $type ) : array
$type string
Résultat array

getAllSubtypes() protected méthode

Return all sub node types of a node type (recursively)
protected getAllSubtypes ( string $type ) : array
$type string
Résultat array

readNodeTypeConfiguration() protected méthode

protected readNodeTypeConfiguration ( string $nodeTypeName, NodeType $nodeType ) : void
$nodeTypeName string
$nodeType Neos\ContentRepository\Domain\Model\NodeType
Résultat void

removeUndeclaredTypes() protected méthode

Cleans up all types which are not know in given configuration array
protected removeUndeclaredTypes ( array &$configuration ) : void
$configuration array
Résultat void

Property Details

$configuration protected_oe property

protected object $configuration
Résultat object

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Résultat Neos\ContentRepository\Domain\Service\NodeTypeManager

$properties protected_oe property

protected array $properties
Résultat array

$superTypeConfiguration protected_oe property

protected array $superTypeConfiguration
Résultat array

$types protected_oe property

protected array $types
Résultat array