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)
 {
     $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;
 }