Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Ldap / Node / RootDse / OpenLdap.php
blob56fcd95bce501e95ec0509c464469a4d08026244
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Ldap\Node\RootDse;
12 use Zend\Ldap\Node;
14 /**
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
20 /**
21 * Gets the configContext.
23 * @return string|null
25 public function getConfigContext()
27 return $this->getAttribute('configContext', 0);
30 /**
31 * Gets the monitorContext.
33 * @return string|null
35 public function getMonitorContext()
37 return $this->getAttribute('monitorContext', 0);
40 /**
41 * Determines if the control is supported
43 * @param string|array $oids control oid(s) to check
44 * @return bool
46 public function supportsControl($oids)
48 return $this->attributeHasValue('supportedControl', $oids);
51 /**
52 * Determines if the extension is supported
54 * @param string|array $oids oid(s) to check
55 * @return bool
57 public function supportsExtension($oids)
59 return $this->attributeHasValue('supportedExtension', $oids);
62 /**
63 * Determines if the feature is supported
65 * @param string|array $oids feature oid(s) to check
66 * @return bool
68 public function supportsFeature($oids)
70 return $this->attributeHasValue('supportedFeatures', $oids);
73 /**
74 * Gets the server type
76 * @return int
78 public function getServerType()
80 return self::SERVER_TYPE_OPENLDAP;