getRawBindings() публичный метод

Get the raw array of bindings.
public getRawBindings ( ) : array
Результат array
Пример #1
0
 /**
  * Remove scope constraint from the query.
  *
  * @param  \Illuminate\Database\Query\Builder $builder
  * @param  int $key
  * @return void
  */
 protected function removeBinding(BaseBuilder $query, $key)
 {
     $bindings = $query->getRawBindings()['where'];
     unset($bindings[$key]);
     $query->setBindings($bindings);
 }
Пример #2
0
 /**
  * Get the raw array of bindings.
  *
  * @return array 
  * @static 
  */
 public static function getRawBindings()
 {
     return \Illuminate\Database\Query\Builder::getRawBindings();
 }
Пример #3
0
 /**
  * Remove bindings from the query builder.
  *
  * @param  \Illuminate\Database\Query\Builder $query
  * @param  integer $key
  * @param  integer $count
  * @return void
  */
 protected function removeBindings(Query $query, $key, $count)
 {
     $bindings = $query->getRawBindings()['where'];
     array_splice($bindings, $key, $count);
     $query->setBindings($bindings, 'where');
 }