. */ /** * Doctrine_Hook_Parser * * @package Doctrine * @subpackage Hook * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.org * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen */ abstract class Doctrine_Hook_Parser { protected $condition; protected $params = array(); public function getCondition() { return $this->condition; } /** * getParams * returns the parameters associated with this parser * * @return array */ public function getParams() { return $this->params; } /** * parse * Parses given field and field value to DQL condition * and parameters. This method should always return * prepared statement conditions (conditions that use * placeholders instead of literal values). * * @param string $alias component alias * @param string $field the field name * @param mixed $value the value of the field * @return void */ abstract public function parse($alias, $field, $value); }