public function getVersion() { if ($this->_link) { $version = $this->getOption('LDAP_OPT_PROTOCOL_VERSION'); } else { $version = $this->_config['version']; } return $version; }