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-2010 Zend Technologies USA Inc. (http://www.zend.com) |
---|
19 | * @license http://framework.zend.com/license/new-bsd New BSD License |
---|
20 | * @version $Id: eDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $ |
---|
21 | */ |
---|
22 | |
---|
23 | /** |
---|
24 | * @see Zend_Ldap_Node_RootDse |
---|
25 | */ |
---|
26 | require_once 'Zend/Ldap/Node/RootDse.php'; |
---|
27 | |
---|
28 | /** |
---|
29 | * Zend_Ldap_Node_RootDse provides a simple data-container for the RootDSE node of |
---|
30 | * a Novell eDirectory server. |
---|
31 | * |
---|
32 | * @category Zend |
---|
33 | * @package Zend_Ldap |
---|
34 | * @subpackage RootDSE |
---|
35 | * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
---|
36 | * @license http://framework.zend.com/license/new-bsd New BSD License |
---|
37 | */ |
---|
38 | class Zend_Ldap_Node_RootDse_eDirectory extends Zend_Ldap_Node_RootDse |
---|
39 | { |
---|
40 | /** |
---|
41 | * Determines if the extension is supported |
---|
42 | * |
---|
43 | * @param string|array $oids oid(s) to check |
---|
44 | * @return boolean |
---|
45 | */ |
---|
46 | public function supportsExtension($oids) |
---|
47 | { |
---|
48 | return $this->attributeHasValue('supportedExtension', $oids); |
---|
49 | } |
---|
50 | |
---|
51 | /** |
---|
52 | * Gets the vendorName. |
---|
53 | * |
---|
54 | * @return string|null |
---|
55 | */ |
---|
56 | public function getVendorName() |
---|
57 | { |
---|
58 | return $this->getAttribute('vendorName', 0); |
---|
59 | } |
---|
60 | |
---|
61 | /** |
---|
62 | * Gets the vendorVersion. |
---|
63 | * |
---|
64 | * @return string|null |
---|
65 | */ |
---|
66 | public function getVendorVersion() |
---|
67 | { |
---|
68 | return $this->getAttribute('vendorVersion', 0); |
---|
69 | } |
---|
70 | |
---|
71 | /** |
---|
72 | * Gets the dsaName. |
---|
73 | * |
---|
74 | * @return string|null |
---|
75 | */ |
---|
76 | public function getDsaName() |
---|
77 | { |
---|
78 | return $this->getAttribute('dsaName', 0); |
---|
79 | } |
---|
80 | |
---|
81 | /** |
---|
82 | * Gets the server statistics "errors". |
---|
83 | * |
---|
84 | * @return string|null |
---|
85 | */ |
---|
86 | public function getStatisticsErrors() |
---|
87 | { |
---|
88 | return $this->getAttribute('errors', 0); |
---|
89 | } |
---|
90 | |
---|
91 | /** |
---|
92 | * Gets the server statistics "securityErrors". |
---|
93 | * |
---|
94 | * @return string|null |
---|
95 | */ |
---|
96 | public function getStatisticsSecurityErrors() |
---|
97 | { |
---|
98 | return $this->getAttribute('securityErrors', 0); |
---|
99 | } |
---|
100 | |
---|
101 | /** |
---|
102 | * Gets the server statistics "chainings". |
---|
103 | * |
---|
104 | * @return string|null |
---|
105 | */ |
---|
106 | public function getStatisticsChainings() |
---|
107 | { |
---|
108 | return $this->getAttribute('chainings', 0); |
---|
109 | } |
---|
110 | |
---|
111 | /** |
---|
112 | * Gets the server statistics "referralsReturned". |
---|
113 | * |
---|
114 | * @return string|null |
---|
115 | */ |
---|
116 | public function getStatisticsReferralsReturned() |
---|
117 | { |
---|
118 | return $this->getAttribute('referralsReturned', 0); |
---|
119 | } |
---|
120 | |
---|
121 | /** |
---|
122 | * Gets the server statistics "extendedOps". |
---|
123 | * |
---|
124 | * @return string|null |
---|
125 | */ |
---|
126 | public function getStatisticsExtendedOps() |
---|
127 | { |
---|
128 | return $this->getAttribute('extendedOps', 0); |
---|
129 | } |
---|
130 | |
---|
131 | /** |
---|
132 | * Gets the server statistics "abandonOps". |
---|
133 | * |
---|
134 | * @return string|null |
---|
135 | */ |
---|
136 | public function getStatisticsAbandonOps() |
---|
137 | { |
---|
138 | return $this->getAttribute('abandonOps', 0); |
---|
139 | } |
---|
140 | |
---|
141 | /** |
---|
142 | * Gets the server statistics "wholeSubtreeSearchOps". |
---|
143 | * |
---|
144 | * @return string|null |
---|
145 | */ |
---|
146 | public function getStatisticsWholeSubtreeSearchOps() |
---|
147 | { |
---|
148 | return $this->getAttribute('wholeSubtreeSearchOps', 0); |
---|
149 | } |
---|
150 | |
---|
151 | /** |
---|
152 | * Gets the server type |
---|
153 | * |
---|
154 | * @return int |
---|
155 | */ |
---|
156 | public function getServerType() |
---|
157 | { |
---|
158 | return self::SERVER_TYPE_EDIRECTORY; |
---|
159 | } |
---|
160 | } |
---|