@@ -88,6 +88,9 @@ discard block |
||
88 | 88 | return $this->appendFieldServer($fieldName, $fieldValue); |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param string $fieldName |
|
93 | + */ |
|
91 | 94 | private function getFieldLocal($fieldName) |
92 | 95 | { |
93 | 96 | if($this->ldapObj === false) |
@@ -101,6 +104,9 @@ discard block |
||
101 | 104 | return $this->ldapObj[$fieldName]; |
102 | 105 | } |
103 | 106 | |
107 | + /** |
|
108 | + * @param string $fieldName |
|
109 | + */ |
|
104 | 110 | private function getFieldServer($fieldName) |
105 | 111 | { |
106 | 112 | $lowerName = strtolower($fieldName); |
@@ -111,6 +117,9 @@ discard block |
||
111 | 117 | return $this->ldapObj->{$lowerName}; |
112 | 118 | } |
113 | 119 | |
120 | + /** |
|
121 | + * @param string $fieldName |
|
122 | + */ |
|
114 | 123 | private function getFieldLocalSingleValue($fieldName) |
115 | 124 | { |
116 | 125 | if($this->ldapObj === false) |
@@ -128,6 +137,9 @@ discard block |
||
128 | 137 | return $this->ldapObj[$fieldName]; |
129 | 138 | } |
130 | 139 | |
140 | + /** |
|
141 | + * @param string $fieldName |
|
142 | + */ |
|
131 | 143 | private function getFieldServerSingleValue($fieldName) |
132 | 144 | { |
133 | 145 | $lowerName = strtolower($fieldName); |
@@ -143,6 +155,9 @@ discard block |
||
143 | 155 | return $field[0]; |
144 | 156 | } |
145 | 157 | |
158 | + /** |
|
159 | + * @param string $fieldName |
|
160 | + */ |
|
146 | 161 | private function setFieldServer($fieldName, $fieldValue) |
147 | 162 | { |
148 | 163 | $obj = array('dn'=>$this->ldapObj->dn); |
@@ -159,6 +174,9 @@ discard block |
||
159 | 174 | return $this->update($obj); |
160 | 175 | } |
161 | 176 | |
177 | + /** |
|
178 | + * @param string $fieldName |
|
179 | + */ |
|
162 | 180 | private function appendFieldServer($fieldName, $fieldValue) |
163 | 181 | { |
164 | 182 | $obj = array('dn'=>$this->ldapObj->dn); |
@@ -175,6 +193,9 @@ discard block |
||
175 | 193 | return $this->update($obj); |
176 | 194 | } |
177 | 195 | |
196 | + /** |
|
197 | + * @param string $fieldName |
|
198 | + */ |
|
178 | 199 | private function setFieldLocal($fieldName, $fieldValue) |
179 | 200 | { |
180 | 201 | if($this->ldapObj === false) |
@@ -193,6 +214,9 @@ discard block |
||
193 | 214 | return true; |
194 | 215 | } |
195 | 216 | |
217 | + /** |
|
218 | + * @param string $fieldName |
|
219 | + */ |
|
196 | 220 | private function appendFieldLocal($fieldName, $fieldValue) |
197 | 221 | { |
198 | 222 | if($this->ldapObj === false) |
@@ -90,7 +90,7 @@ |
||
90 | 90 | * We need the ability to obtain the user's unhashed plain text password to allow for it to be sent |
91 | 91 | * to the correct backend which will hash it |
92 | 92 | * |
93 | - * @return boolean|string The current password |
|
93 | + * @return boolean The current password |
|
94 | 94 | */ |
95 | 95 | public function getPassword() |
96 | 96 | { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * Get the data table for Pending Users |
142 | 142 | * |
143 | - * @return boolean|\Data\DataTable The Pending User Data Table |
|
143 | + * @return boolean The Pending User Data Table |
|
144 | 144 | */ |
145 | 145 | private function getPendingUserDataTable() |
146 | 146 | { |
@@ -213,6 +213,9 @@ discard block |
||
213 | 213 | return new SQLUser($users[0], $this); |
214 | 214 | } |
215 | 215 | |
216 | + /** |
|
217 | + * @param string $dataTableName |
|
218 | + */ |
|
216 | 219 | private function getDataByFilter($dataTableName, $filter, $select, $top, $skip, $orderby) |
217 | 220 | { |
218 | 221 | $dataTable = $this->getDataTable($dataTableName); |
@@ -278,6 +281,9 @@ discard block |
||
278 | 281 | return $dataTable->count(); |
279 | 282 | } |
280 | 283 | |
284 | + /** |
|
285 | + * @param \Data\Filter $filter |
|
286 | + */ |
|
281 | 287 | private function searchPendingUsers($filter, $select, $top, $skip, $orderby) |
282 | 288 | { |
283 | 289 | $userDataTable = $this->getPendingUserDataTable(); |
@@ -839,7 +839,7 @@ |
||
839 | 839 | * |
840 | 840 | * @param string $name The name of the link |
841 | 841 | * @param false|string $url The URL to link to |
842 | - * @param false|array $subment Any submenu items for the dropdown |
|
842 | + * @param false|array $submenu Any submenu items for the dropdown |
|
843 | 843 | */ |
844 | 844 | public function addLink($name, $url = false, $submenu = false) |
845 | 845 | { |
@@ -113,6 +113,9 @@ discard block |
||
113 | 113 | throw new \Exception('No such table '.$name); |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param string $tablename |
|
118 | + */ |
|
116 | 119 | function read($tablename, $where = false, $select = '*', $count = false, $skip = false, $sort = false) |
117 | 120 | { |
118 | 121 | if($select === false) |
@@ -158,6 +161,9 @@ discard block |
||
158 | 161 | return $ret; |
159 | 162 | } |
160 | 163 | |
164 | + /** |
|
165 | + * @param string $tablename |
|
166 | + */ |
|
161 | 167 | function update($tablename, $where, $data) |
162 | 168 | { |
163 | 169 | $set = array(); |
@@ -180,6 +186,9 @@ discard block |
||
180 | 186 | return true; |
181 | 187 | } |
182 | 188 | |
189 | + /** |
|
190 | + * @param string $tablename |
|
191 | + */ |
|
183 | 192 | function create($tablename, $data) |
184 | 193 | { |
185 | 194 | $set = array(); |
@@ -203,6 +212,9 @@ discard block |
||
203 | 212 | return true; |
204 | 213 | } |
205 | 214 | |
215 | + /** |
|
216 | + * @param string $tablename |
|
217 | + */ |
|
206 | 218 | function delete($tablename, $where) |
207 | 219 | { |
208 | 220 | $sql = "DELETE FROM $tablename WHERE $where"; |