/** * @param Sabel_Db_Statement $stmt * * @return string */ public function build(Sabel_Db_Statement $stmt) { if (empty($this->conditions)) { return ""; } Sabel_Db_Abstract_Condition::rewind(); $query = array(); foreach ($this->conditions as $condition) { $query[] = $condition->build($stmt); } return "WHERE " . implode(" AND ", $query); }
/** * @return void */ public static function rewind() { self::$counter = 0; }