Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function toString(Quoter $quoter)
 {
     if (isset($this->model)) {
         return $quoter->quoteModel($this->model) . '.' . $quoter->quoteField($this->field);
     }
     return $quoter->quoteField($this->field);
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function toString(Quoter $quoter)
 {
     $values = $this->values;
     foreach ($values as $key => $v) {
         $values[$key] = $quoter->quoteLiteral($this->type, $v);
     }
     return '(' . implode(', ', $values) . ')';
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function toString(Quoter $quoter)
 {
     $str = '';
     if (isset($this->model)) {
         if ($this->quoteModel) {
             $str = $quoter->quoteModel($this->model) . '.';
         } else {
             $str = $this->model . '.';
         }
     }
     if ($this->quoteField) {
         $str .= $quoter->quoteField($this->field);
     } else {
         $str .= $this->field;
     }
     return $str;
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function toString(Quoter $quoter)
 {
     return $quoter->quoteLiteral($this->type, $this->value);
 }