PHP Interface Jackalope\Transport\NodeTypeManagementInterface

There is an alternate interface if your transport implements direct support for the "compact node type and namespace" definition. But if it does not, Jackalope will parse the cnd for you and call registerNodeTypes. Note that this is about creating custom node types. The basic node type discovery is part of the CoreInterface.
Inheritance: extends Jackalope\Transport\TransportInterface
Show file Open project: jackalope/jackalope

Public Methods

Method Description
registerNodeTypes ( array $types, boolean $allowUpdate ) : boolean Register a list of node types with the storage backend

Method Details

registerNodeTypes() public method

Register a list of node types with the storage backend
public registerNodeTypes ( array $types, boolean $allowUpdate ) : boolean
$types array a list of \PHPCR\NodeType\NodeTypeDefinitionInterface objects
$allowUpdate boolean whether to fail if node already exists or to update it
return boolean true on success