Horde_Ldap::getVersion PHP Метод

getVersion() публичный Метод

A lot of LDAP functionality is defined by what protocol version the LDAP server speaks. This might be 2 or 3.
public getVersion ( ) : integer
Результат integer The protocol version.
    public function getVersion()
    {
        if ($this->_link) {
            $version = $this->getOption('LDAP_OPT_PROTOCOL_VERSION');
        } else {
            $version = $this->_config['version'];
        }
        return $version;
    }