Example #1
0
 public function test()
 {
     echo '<pre>';
     $translator = new Translator(Translator::UPDATE, $this->update_array);
     echo $translator->translate() . "\n" . $this->translate();
     echo '</pre>';
 }
Example #2
0
 public function test()
 {
     echo '<pre>';
     $translator = new Translator(Translator::DELETE);
     echo $translator->translate() . "\n" . $this->translate();
     echo '</pre>';
 }
Example #3
0
 public function translate()
 {
     $translator = new Translator(Translator::CONDITION, $this->matcher);
     return $translator->translate();
 }
Example #4
0
 public function translate()
 {
     $translator = new Translator(Translator::WHERE, $this->conditions_and, $this->conditions_or);
     return $translator->translate();
 }
Example #5
0
 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>';
 }