public function test() { echo '<pre>'; $translator = new Translator(Translator::UPDATE, $this->update_array); echo $translator->translate() . "\n" . $this->translate(); echo '</pre>'; }
public function test() { echo '<pre>'; $translator = new Translator(Translator::DELETE); echo $translator->translate() . "\n" . $this->translate(); echo '</pre>'; }
public function translate() { $translator = new Translator(Translator::CONDITION, $this->matcher); return $translator->translate(); }
public function translate() { $translator = new Translator(Translator::WHERE, $this->conditions_and, $this->conditions_or); return $translator->translate(); }
public function test() { echo '<pre>'; $translator = new Translator(Translator::SELECT, $this->column_array, $this->limit, $this->offset, $this->ordering); $select = $translator->translate(); echo str_replace('{WHERE}', $this->translate(), $select); echo '</pre>'; }