예제 #1
0
 /**
  * Wrap a value in keyword identifiers.
  *
  * @param  Table|string  $value
  * @return string
  */
 public function wrap($value)
 {
     // This method is primarily for convenience so we can just pass a
     // column or table instance into the wrap method without sending
     // in the name each time we need to wrap one of these objects.
     if ($value instanceof Table) {
         return $this->wrap_table($value->name);
     } elseif ($value instanceof Fluent) {
         $value = $value->name;
     }
     return parent::wrap($value);
 }
예제 #2
0
 public function wrap($value)
 {
     if ($value instanceof Table) {
         return $this->wrap_table($value->name);
     } elseif ($value instanceof Fluent) {
         $value = $value->name;
     }
     return parent::wrap($value);
 }