. */ Doctrine::autoload("Doctrine_Access"); /** * Doctrine_Query_Part * * @package Doctrine ORM * @url www.phpdoctrine.com * @license LGPL */ abstract class Doctrine_Query_Part extends Doctrine_Access { /** * @var Doctrine_Query $query the query object associated with this parser */ protected $query; /** * @var string $name the name of this parser */ protected $name; /** * @var array $parts */ protected $parts = array(); /** * @param Doctrine_Query $query the query object associated with this parser */ public function __construct(Doctrine_Query $query) { $this->query = $query; } /** * @return string $name the name of this parser */ public function getName() { return $this->name; } /** * @return Doctrine_Query $query the query object associated with this parser */ public function getQuery() { return $this->query; } /** * add * * @param string $value * @return void */ public function add($value) { $method = "parse".$this->name; $this->query->$method($value); } public function get($name) { } public function set($name, $value) { } }