PHP Class Neos\Neos\Service\VieSchemaBuilder

Example schema: http://schema.rdfs.org/all.json
显示文件 Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$configuration object
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$properties array
$superTypeConfiguration array
$types array

Public Methods

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

Protected Methods

Method 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 method

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

generateVieSchema() public method

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

getAllAncestors() protected method

Return all ancestors of a node type
protected getAllAncestors ( string $type ) : array
$type string
return array

getAllSubtypes() protected method

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

readNodeTypeConfiguration() protected method

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

removeUndeclaredTypes() protected method

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

Property Details

$configuration protected_oe property

protected object $configuration
return object

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager

$properties protected_oe property

protected array $properties
return array

$superTypeConfiguration protected_oe property

protected array $superTypeConfiguration
return array

$types protected_oe property

protected array $types
return array