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

Implementation specific: Transport is used elsewhere, provide it here for Session
public getTransport ( ) : Jackalope\Transport\TransportInterface
Результат Jackalope\Transport\TransportInterface
Пример #1
0
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function execute()
 {
     if (is_null($this->objectManager)) {
         // if the ObjectManager was not injected in the header. this is only supposed to happen in the DBAL client.
         throw new RepositoryException('Jackalope implementation error: This query was built for parsing only. (There is no ObjectManager to run the query against.)');
     }
     $transport = $this->objectManager->getTransport();
     $rawData = $transport->query($this);
     $queryResult = $this->factory->get('Query\\QueryResult', array($rawData, $this->objectManager));
     return $queryResult;
 }
Пример #2
0
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function getSupportedQueryLanguages()
 {
     // Workspace checks if transport implements QueryInterface
     return $this->objectManager->getTransport()->getSupportedQueryLanguages();
 }
Пример #3
0
 /**
  * Implementation specific: The transport implementation is also used by
  * other components, i.e. the NamespaceRegistry
  *
  * @return TransportInterface the transport implementation associated with
  *      this session.
  *
  * @private
  */
 public function getTransport()
 {
     return $this->objectManager->getTransport();
 }