Jackalope\Transport\TransportInterface::getNodes PHP Метод

getNodes() публичный Метод

This is an optimization over getNode to get many nodes in one call. If the transport implementation does not optimize, it can just loop over the paths and call getNode repeatedly. If a transport can do it, it should also implement NodeTypeFilterInterface. For prefetch, there are two mechanisms: As with getNode, the stdClass structure may be recursive. Additionally, the transport is allowed to return additional entries that where not requested in the returned array. Jackalope takes care of only returning nodes that where actually requested by the client and caching the rest.
public getNodes ( array $paths ) : array
$paths array Absolute paths to the nodes.
Результат array keys are the absolute paths, values is the node data as associative array (decoded from json with associative = true)
    public function getNodes($paths);

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getNodes($paths)
 {
     $this->logger->startCall(__FUNCTION__, func_get_args(), array('fetchDepth' => $this->transport->getFetchDepth()));
     $result = $this->transport->getNodes($paths);
     $this->logger->stopCall();
     return $result;
 }
All Usage Examples Of Jackalope\Transport\TransportInterface::getNodes