Adldap\Query\Builder::select PHP Метод

select() публичный Метод

Adds the inserted fields to query on the current LDAP connection.
public select ( array | string $fields = [] ) : Builder
$fields array | string
Результат 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

Пример #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;
 }