LdapTools\Operation\QueryOperation::getAttributes PHP Method

getAttributes() public method

Get the attributes to be selected by the query operation.
public getAttributes ( ) : array | null
return array | null
    public function getAttributes()
    {
        return $this->properties['attributes'];
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Get all the attributes that were selected for the query taking into account all of the aliases used.
  * 
  * @param array $aliases
  * @return array
  */
 protected function getSelectedForAllAliases(array $aliases)
 {
     if (empty($aliases)) {
         $selected = $this->mergeOrderByAttributes($this->getSelectedQueryAttributes($this->operation->getAttributes()));
     } else {
         // If there are aliases, then we need to loop through each one to determine was was actually selected for each.
         $selected = [];
         foreach ($aliases as $alias => $schema) {
             $selected = array_replace($selected, $this->mergeOrderByAttributes($this->getSelectedQueryAttributes($this->operation->getAttributes(), $schema), $alias));
         }
     }
     return $selected;
 }
All Usage Examples Of LdapTools\Operation\QueryOperation::getAttributes