public function getActiveServers()
    {
        $activeServers = [];

        if (isset($this->config['servers']) && is_array($this->config['servers'])) {
            foreach ($this->config['servers'] as $server) {
                if (isset($server['active']) && isset($server['objectClass']) && $server['active']) {
                    $activeServers[] = $server['name'];
                }
            }
        }

        return $activeServers;
    }
public function getActiveServers()
    {
        $activeServers = [];

        if (isset($this->config['servers']) && is_array($this->config['servers'])) {
            foreach ($this->config['servers'] as $server) {
                if (isset($server['active']) && isset($server['objectClass']) && $server['active']) {
                    $activeServers[] = $server['name'];
                }
            }
        }

        return $activeServers;
    }
public function getActiveServers ( ) { $ activeServers = [ ] ; if ( isset ( $ this -> config [ 'servers' ] ) && is_array ( $ this -> config [ 'servers' ] ) ) { foreach ( $ this -> config [ 'servers' ] as $ server ) { if ( isset ( $ server [ 'active' ] ) && isset ( $ server [ 'objectClass' ] ) && $ server [ 'active' ] ) { $ activeServers [ ] = $ server [ 'name' ] ; } } } return $ activeServers ; }
Return a list of active servers.

@return array
Return a list of active servers .