1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/lib/Doctrine/Query/Part.php
2006-09-26 15:00:13 +00:00

41 lines
759 B
PHP

<?php
Doctrine::autoload("Doctrine_Access");
abstract class Doctrine_Query_Part extends Doctrine_Access {
protected $query;
protected $name;
protected $parts = array();
public function __construct(Doctrine_Query $query) {
$this->query = $query;
}
public function getName() {
return $this->name;
}
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) { }
}