If the transport does not support registering new node types, it can
just return types from the hard coded definition at
Jackalope\Transport\StandardNodeTypes
public getNodeTypes ( $nodeTypes = [] ) : array | ||
리턴 | 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; }
/** * 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); }