vendor/jackalope/jackalope/src/Jackalope/Query/SqlQuery.php line 14

Open in your IDE?
  1. <?php
  2. namespace Jackalope\Query;
  3. /**
  4.  * Query implementation for the SQL2 language.
  5.  *
  6.  * This can never be legally created if the transport does not implement
  7.  * QueryInterface.
  8.  *
  9.  * @license http://www.apache.org/licenses Apache License Version 2.0, January 2004
  10.  * @license http://opensource.org/licenses/MIT MIT License
  11.  */
  12. class SqlQuery extends Query
  13. {
  14.     /**
  15.      * Access the query statement from the transport layer
  16.      *
  17.      * @return string the sql2 query statement
  18.      *
  19.      * @private
  20.      */
  21.     public function getStatementSql2()
  22.     {
  23.         return $this->getStatement();
  24.         //TODO: should this expand bind variables? or the transport?
  25.     }
  26.     /**
  27.      * Returns the constant QueryInterface::JCR-SQL2
  28.      *
  29.      * @return string the query language.
  30.      */
  31.     public function getLanguage()
  32.     {
  33.         return self::JCR_SQL2;
  34.     }
  35. }