Blame view

src/vendor/1.2.5/Phalcon/Mvc/Model/Query/Lang.php 1006 Bytes
1ea3b987   Administrator   maby first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  <?php 
  
  namespace Phalcon\Mvc\Model\Query {
  
  	/**
  	 * Phalcon\Mvc\Model\Query\Lang
  	 *
  	 * PHQL is implemented as a parser (written in C) that translates syntax in
  	 * that of the target RDBMS. It allows Phalcon to offer a unified SQL language to
  	 * the developer, while internally doing all the work of translating PHQL
  	 * instructions to the most optimal SQL instructions depending on the
  	 * RDBMS type associated with a model.
  	 *
  	 * To achieve the highest performance possible, we wrote a parser that uses
  	 * the same technology as SQLite. This technology provides a small in-memory
  	 * parser with a very low memory footprint that is also thread-safe.
  	 *
  	 * <code>
  	 * $intermediate = Phalcon\Mvc\Model\Query\Lang::parsePHQL("SELECT r.* FROM Robots r LIMIT 10");
  	 * </code>
  	 */
  	
  	abstract class Lang {
  
  		/**
  		 * Parses a PHQL statement returning an intermediate representation (IR)
  		 *
  		 * @param string $phql
  		 * @return string
  		 */
  		public static function parsePHQL($phql){ }
  
  	}
  }