Esempio n. 1
0
 /**
  * @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);
 }
Esempio n. 2
0
 /**
  * @return void
  */
 public static function rewind()
 {
     self::$counter = 0;
 }