Adldap\Query\Builder::select PHP Method

select() public method

Adds the inserted fields to query on the current LDAP connection.
public select ( array | string $fields = [] ) : Builder
$fields array | string
return Builder
    public function select($fields = [])
    {
        $fields = is_array($fields) ? $fields : func_get_args();
        foreach ($fields as $field) {
            $this->addBinding(new Select($field), 'select');
        }
        return $this;
    }

Usage Example

Esempio n. 1
0
 /**
  * Adds the inserted fields to query on the current LDAP connection.
  *
  * @param array $fields
  *
  * @return $this
  */
 public function select($fields = [])
 {
     $this->query->select($fields);
     return $this;
 }