Source of file OpenLdap.php
Size: 1,883 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Ldap/Node/RootDse/OpenLdap.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Ldap\Node\RootDse; use Zend\Ldap\Node; /** * Zend\Ldap\Node\RootDse\OpenLdap provides a simple data-container for the * RootDse node of an OpenLDAP server. */ class OpenLdap extends Node\RootDse { /** * Gets the configContext. * * @return string|null */ public function getConfigContext() { return $this->getAttribute('configContext', 0); } /** * Gets the monitorContext. * * @return string|null */ public function getMonitorContext() { return $this->getAttribute('monitorContext', 0); } /** * Determines if the control is supported * * @param string|array $oids control oid(s) to check * @return bool */ public function supportsControl($oids) { return $this->attributeHasValue('supportedControl', $oids); } /** * Determines if the extension is supported * * @param string|array $oids oid(s) to check * @return bool */ public function supportsExtension($oids) { return $this->attributeHasValue('supportedExtension', $oids); } /** * Determines if the feature is supported * * @param string|array $oids feature oid(s) to check * @return bool */ public function supportsFeature($oids) { return $this->attributeHasValue('supportedFeatures', $oids); } /** * Gets the server type * * @return int */ public function getServerType() { return self::SERVER_TYPE_OPENLDAP; } } |