Adldap\Query\Builder::whereContains PHP Method

whereContains() public method

Adds a where contains clause to the current query.
public whereContains ( string $field, string $value ) : Builder
$field string
$value string
return Builder
    public function whereContains($field, $value)
    {
        return $this->where($field, Operator::$contains, $value);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Adds a where contains clause to the current query.
  *
  * @param string $field
  * @param string $value
  *
  * @return $this
  */
 public function whereContains($field, $value)
 {
     $this->query->whereContains($field, $value);
     return $this;
 }