. */ /** * Doctrine_Hook * * @package Doctrine * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen */ class Doctrine_Hook { /** * @var Doctrine_Query $query the base query */ private $query; /** * @var array $joins the optional joins of the base query */ private $joins; /** * @param Doctrine_Query $query the base query */ public function __construct($query) { if(is_string($query)) { $this->query = new Doctrine_Query(); $this->query->parseQuery($query); } elseif($query instanceof Doctrine_Query) { $this->query = $query; } } public function leftJoin($dql) { } public function innerJoin($dql) { } public function hookWhere(array $params) { } public function hookOrderby(array $params) { } /** * @param integer $limit */ public function hookLimit($limit) { } /** * @param integer $offset */ public function hookOffset($offset) { } public function setWhereHooks() { } public function setOrderByHooks() { } }