3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Ldap\Node\RootDse
;
15 * Zend\Ldap\Node\RootDse\OpenLdap provides a simple data-container for the
16 * RootDse node of an OpenLDAP server.
18 class OpenLdap
extends Node\RootDse
21 * Gets the configContext.
25 public function getConfigContext()
27 return $this->getAttribute('configContext', 0);
31 * Gets the monitorContext.
35 public function getMonitorContext()
37 return $this->getAttribute('monitorContext', 0);
41 * Determines if the control is supported
43 * @param string|array $oids control oid(s) to check
46 public function supportsControl($oids)
48 return $this->attributeHasValue('supportedControl', $oids);
52 * Determines if the extension is supported
54 * @param string|array $oids oid(s) to check
57 public function supportsExtension($oids)
59 return $this->attributeHasValue('supportedExtension', $oids);
63 * Determines if the feature is supported
65 * @param string|array $oids feature oid(s) to check
68 public function supportsFeature($oids)
70 return $this->attributeHasValue('supportedFeatures', $oids);
74 * Gets the server type
78 public function getServerType()
80 return self
::SERVER_TYPE_OPENLDAP
;