src/LdapTools/Operation/LdapOperationTrait.php
protected function mergeLogDefaults(array $log)
    {
        $defaults = [];
        $controls = [];
        if (!empty($this->controls)) {
            foreach ($this->controls as $control) {
                $controls[] = $control->toArray();
            }
        }
        if ($this instanceof CacheableOperationInterface) {
            $defaults['Use Cache'] = var_export($this->getUseCache(), true);
            $defaults['Execute on Cache Miss'] = var_export($this->getExecuteOnCacheMiss(), true);
            $defaults['Invalidate Cache'] = var_export($this->getInvalidateCache(), true);
        }
        $defaults['Server'] = $this->server;
        $defaults['Controls'] = var_export($controls, true);

        return array_merge($log, $defaults);
    }
protected function mergeLogDefaults(array $log)
    {
        $defaults = [];
        $controls = [];
        if (!empty($this->controls)) {
            foreach ($this->controls as $control) {
                $controls[] = $control->toArray();
            }
        }
        if ($this instanceof CacheableOperationInterface) {
            $defaults['Use Cache'] = var_export($this->getUseCache(), true);
            $defaults['Execute on Cache Miss'] = var_export($this->getExecuteOnCacheMiss(), true);
            $defaults['Invalidate Cache'] = var_export($this->getInvalidateCache(), true);
        }
        $defaults['Server'] = $this->server;
        $defaults['Controls'] = var_export($controls, true);

        return array_merge($log, $defaults);
    }
protected function mergeLogDefaults ( array $ log ) { $ defaults = [ ] ; $ controls = [ ] ; if ( ! empty ( $ this -> controls ) ) { foreach ( $ this -> controls as $ control ) { $ controls [ ] = $ control -> toArray ( ) ; } } if ( $ this instanceof CacheableOperationInterface ) { $ defaults [ 'Use Cache' ] = var_export ( $ this -> getUseCache ( ) , true ) ; $ defaults [ 'Execute on Cache Miss' ] = var_export ( $ this -> getExecuteOnCacheMiss ( ) , true ) ; $ defaults [ 'Invalidate Cache' ] = var_export ( $ this -> getInvalidateCache ( ) , true ) ; } $ defaults [ 'Server' ] = $ this -> server ; $ defaults [ 'Controls' ] = var_export ( $ controls , true ) ; return array_merge ( $ log , $ defaults ) ; }
Merges the log array with common log properties.

@param array $log
@return array
Merges the log array with common log properties .