getTransport() public method

Implementation specific: Transport is used elsewhere, provide it here for Session
public getTransport ( ) : Jackalope\Transport\TransportInterface
return Jackalope\Transport\TransportInterface
コード例 #1
0
ファイル: Query.php プロジェクト: ruflin/jackalope
 /**
  * {@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
ファイル: QueryManager.php プロジェクト: viral810/ngSimpleCMS
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function getSupportedQueryLanguages()
 {
     // Workspace checks if transport implements QueryInterface
     return $this->objectManager->getTransport()->getSupportedQueryLanguages();
 }
コード例 #3
0
ファイル: Session.php プロジェクト: frogriotcom/jackalope
 /**
  * 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();
 }