getNodeTypes() public method

If the transport does not support registering new node types, it can just return types from the hard coded definition at Jackalope\Transport\StandardNodeTypes
See also: NodeTypeDefinition::fromArray
public getNodeTypes ( $nodeTypes = [] ) : array
return array with the definitions
 /**
  * {@inheritDoc}
  */
 public function getNodeTypes($nodeTypes = array())
 {
     $this->logger->startCall(__FUNCTION__, func_get_args());
     $result = $this->transport->getNodeTypes($nodeTypes);
     $this->logger->stopCall();
     return $result;
 }
Example #2
0
 /**
  * Returns the node types specified by name in the array or all types if no
  * filter is given.
  *
  * This is only a proxy to the transport
  *
  * @param array $nodeTypes Empty for all or specify node types by name
  *
  * @return \DOMDocument containing the nodetype information
  */
 public function getNodeTypes($nodeTypes = array())
 {
     return $this->transport->getNodeTypes($nodeTypes);
 }