eDirectory.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Ldap
  17. * @subpackage RootDSE
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @see Zend_Ldap_Node_RootDse
  24. */
  25. require_once 'Zend/Ldap/Node/RootDse.php';
  26. /**
  27. * Zend_Ldap_Node_RootDse provides a simple data-container for the RootDSE node of
  28. * a Novell eDirectory server.
  29. *
  30. * @category Zend
  31. * @package Zend_Ldap
  32. * @subpackage RootDSE
  33. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  34. * @license http://framework.zend.com/license/new-bsd New BSD License
  35. */
  36. class Zend_Ldap_Node_RootDse_eDirectory extends Zend_Ldap_Node_RootDse
  37. {
  38. /**
  39. * Determines if the extension is supported
  40. *
  41. * @param string|array $oids oid(s) to check
  42. * @return boolean
  43. */
  44. public function supportsExtension($oids)
  45. {
  46. return $this->attributeHasValue('supportedExtension', $oids);
  47. }
  48. /**
  49. * Gets the vendorName.
  50. *
  51. * @return string|null
  52. */
  53. public function getVendorName()
  54. {
  55. return $this->getAttribute('vendorName', 0);
  56. }
  57. /**
  58. * Gets the vendorVersion.
  59. *
  60. * @return string|null
  61. */
  62. public function getVendorVersion()
  63. {
  64. return $this->getAttribute('vendorVersion', 0);
  65. }
  66. /**
  67. * Gets the dsaName.
  68. *
  69. * @return string|null
  70. */
  71. public function getDsaName()
  72. {
  73. return $this->getAttribute('dsaName', 0);
  74. }
  75. /**
  76. * Gets the server statistics "errors".
  77. *
  78. * @return string|null
  79. */
  80. public function getStatisticsErrors()
  81. {
  82. return $this->getAttribute('errors', 0);
  83. }
  84. /**
  85. * Gets the server statistics "securityErrors".
  86. *
  87. * @return string|null
  88. */
  89. public function getStatisticsSecurityErrors()
  90. {
  91. return $this->getAttribute('securityErrors', 0);
  92. }
  93. /**
  94. * Gets the server statistics "chainings".
  95. *
  96. * @return string|null
  97. */
  98. public function getStatisticsChainings()
  99. {
  100. return $this->getAttribute('chainings', 0);
  101. }
  102. /**
  103. * Gets the server statistics "referralsReturned".
  104. *
  105. * @return string|null
  106. */
  107. public function getStatisticsReferralsReturned()
  108. {
  109. return $this->getAttribute('referralsReturned', 0);
  110. }
  111. /**
  112. * Gets the server statistics "extendedOps".
  113. *
  114. * @return string|null
  115. */
  116. public function getStatisticsExtendedOps()
  117. {
  118. return $this->getAttribute('extendedOps', 0);
  119. }
  120. /**
  121. * Gets the server statistics "abandonOps".
  122. *
  123. * @return string|null
  124. */
  125. public function getStatisticsAbandonOps()
  126. {
  127. return $this->getAttribute('abandonOps', 0);
  128. }
  129. /**
  130. * Gets the server statistics "wholeSubtreeSearchOps".
  131. *
  132. * @return string|null
  133. */
  134. public function getStatisticsWholeSubtreeSearchOps()
  135. {
  136. return $this->getAttribute('wholeSubtreeSearchOps', 0);
  137. }
  138. /**
  139. * Gets the server type
  140. *
  141. * @return int
  142. */
  143. public function getServerType()
  144. {
  145. return self::SERVER_TYPE_EDIRECTORY;
  146. }
  147. }