Adldap\Query\Builder::getSelects PHP Method

getSelects() public method

Returns the current selected fields to retrieve.
public getSelects ( ) : array
return array
    public function getSelects()
    {
        $selects = $this->bindings['select'];
        $schema = $this->schema;
        if (count($selects) > 0) {
            // Always make sure object category and class are selected. We need these
            // attributes to construct the right model instance for the record.
            $selects[] = new Select($schema->objectCategory());
            $selects[] = new Select($schema->objectClass());
        }
        return $selects;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Returns the current selected fields to retrieve.
  *
  * @return array
  */
 public function getSelects()
 {
     return $this->query->getSelects();
 }