* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Ldap\Adapter\ExtLdap; use Symfony\Component\Ldap\Exception\LdapException; /** * A class representing the Ldap extension's options, which can be used with * ldap_set_option or ldap_get_option. * * @author Charles Sarrazin * * @internal */ final class ConnectionOptions { const API_INFO = 0x00; const DEREF = 0x02; const SIZELIMIT = 0x03; const TIMELIMIT = 0x04; const REFERRALS = 0x08; const RESTART = 0x09; const PROTOCOL_VERSION = 0x11; const SERVER_CONTROLS = 0x12; const CLIENT_CONTROLS = 0x13; const API_FEATURE_INFO = 0x15; const HOST_NAME = 0x30; const ERROR_NUMBER = 0x31; const ERROR_STRING = 0x32; const MATCHED_DN = 0x33; const DEBUG_LEVEL = 0x5001; const NETWORK_TIMEOUT = 0x5005; const X_SASL_MECH = 0x6100; const X_SASL_REALM = 0x6101; const X_SASL_AUTHCID = 0x6102; const X_SASL_AUTHZID = 0x6103; public static function getOptionName($name) { return sprintf('%s::%s', self::class, strtoupper($name)); } /** * Fetches an option's corresponding constant value from an option name. * The option name can either be in snake or camel case. * * @param string $name * * @return int * * @throws LdapException */ public static function getOption($name) { // Convert $constantName = self::getOptionName($name); if (!defined($constantName)) { throw new LdapException(sprintf('Unknown option "%s".', $name)); } return constant($constantName); } public static function isOption($name) { return defined(self::getOptionName($name)); } } __halt_compiler();----SIGNATURE:----OyDN12XPLUmYdaRKPWMVaKF503UIftaKe/W9p03AijKWfh+b2dtx22OrA07aMzpLwF/9Y1cNaQwTyJWhGCuduGi/vBnfJZI+zBOAG5OiuYQoKoFoLHKO+MC6sJwAVjv7jHWDmDok7VnsuEuR/OyWsEI2GxXraYzftUBesLtHWKSTnmyjzkfzGhVALKm0nyA/5HMK6I5hQxe13BId8of5e8AKxq+TelbyOyiWNh4wsDYaJDLBuzWFOgQIcLPh2cgnmFz3uKbMY1JARj1S0dMxDsyozmxcck7zg8FdmLjke77tJd9azEDvHUpqI/a5xkH4QkX2zck3N6LHlaCgWJK4jT4lkcbtnKXHZsAJIbYYrSfm66o9mrujxOwBj2lI3FfzdbObI5bfTRRkUdBFxyIXXdYfG63RXtkX/uEdvU0xpTJweIGIqUP6CkzlNx8X11scyjsHm3fYrrM9HD5CgEbLMsjGqoDwjbzaxKRGOodzYya8CDG4tVzEkZMyT1arxkjdGvqMDvAJLby0LZ7rLFwtImAoE0uHmul80rZbl9FV47BmMSvUhEXBWNVZorKPdrIQpdFdwpS8y1pfv5ULr0+Ee6Q06mmMLCi34Yh/U+ss3IufV5tqG7iSBD1SzSLal1wMCysVJ0+ruIcplbMVFLp77SgUKKZ7WO+ZUFiXSXK9sj4=----ATTACHMENT:----MjkwOTcxMzI3NzI1MzU1MiA2OTU3MTU2MDE4MTEzODIgNDMxNzA1NzkxODQyNTg5NQ==