@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | * Checks if user is authenticated - session is set |
296 | 296 | * |
297 | 297 | * @access public |
298 | - * @return void |
|
298 | + * @return boolean |
|
299 | 299 | */ |
300 | 300 | public function is_authenticated () { |
301 | 301 | # if checked for subpages first check if $user is array |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | * |
333 | 333 | * @access public |
334 | 334 | * @param bool $die (default: true) |
335 | - * @return void |
|
335 | + * @return boolean|null |
|
336 | 336 | */ |
337 | 337 | public function is_admin ($die = true) { |
338 | 338 | if($this->isadmin) { return true; } |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | * |
348 | 348 | * @access public |
349 | 349 | * @param bool $redirect (default: true) |
350 | - * @return void |
|
350 | + * @return null|boolean |
|
351 | 351 | */ |
352 | 352 | public function check_user_session ($redirect = true) { |
353 | 353 | # not authenticated |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | * @param string $action (default: "create") |
457 | 457 | * @param mixed $index (default: null) |
458 | 458 | * @param mixed $value (default: null) |
459 | - * @return void |
|
459 | + * @return string|boolean |
|
460 | 460 | */ |
461 | 461 | public function csrf_cookie ($action = "create", $index = null, $value = null) { |
462 | 462 | // validate action |
@@ -470,8 +470,8 @@ discard block |
||
470 | 470 | * Validates csrf cookie action.. |
471 | 471 | * |
472 | 472 | * @access private |
473 | - * @param mixed $action |
|
474 | - * @return void |
|
473 | + * @param string $action |
|
474 | + * @return boolean|null |
|
475 | 475 | */ |
476 | 476 | private function csrf_validate_action ($action) { |
477 | 477 | if ($action=="create" || $action=="validate") { return true; } |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | * |
484 | 484 | * @access private |
485 | 485 | * @param mixed $index |
486 | - * @return void |
|
486 | + * @return string |
|
487 | 487 | */ |
488 | 488 | private function csrf_cookie_create ($index) { |
489 | 489 | // set cookie suffix |
@@ -499,7 +499,7 @@ discard block |
||
499 | 499 | * |
500 | 500 | * @access private |
501 | 501 | * @param mixed $index |
502 | - * @return void |
|
502 | + * @return boolean |
|
503 | 503 | */ |
504 | 504 | private function csrf_cookie_validate ($index, $value) { |
505 | 505 | // set cookie suffix |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | * Can be extended by reading set properties from set field options |
657 | 657 | * |
658 | 658 | * @access public |
659 | - * @return void |
|
659 | + * @return string[] |
|
660 | 660 | */ |
661 | 661 | public function fetch_available_auth_method_types () { |
662 | 662 | return array("AD", "LDAP", "NetIQ", "Radius"); |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | * @access public |
724 | 724 | * @param mixed $action |
725 | 725 | * @param mixed $subnetId |
726 | - * @return void |
|
726 | + * @return boolean |
|
727 | 727 | */ |
728 | 728 | public function edit_favourite($action, $subnetId) { |
729 | 729 | # execute |
@@ -737,7 +737,7 @@ discard block |
||
737 | 737 | * |
738 | 738 | * @access private |
739 | 739 | * @param mixed $subnetId |
740 | - * @return void |
|
740 | + * @return boolean |
|
741 | 741 | */ |
742 | 742 | private function remove_favourite ($subnetId) { |
743 | 743 | # set old favourite subnets |
@@ -757,7 +757,7 @@ discard block |
||
757 | 757 | * |
758 | 758 | * @access private |
759 | 759 | * @param int $subnetId |
760 | - * @return boolena |
|
760 | + * @return boolean |
|
761 | 761 | */ |
762 | 762 | private function add_favourite ($subnetId) { |
763 | 763 | # set old favourite subnets |
@@ -794,7 +794,7 @@ discard block |
||
794 | 794 | * |
795 | 795 | * @access public |
796 | 796 | * @param mixed $subnetId |
797 | - * @return void |
|
797 | + * @return boolean |
|
798 | 798 | */ |
799 | 799 | public function is_folder_favourite ($subnetId) { |
800 | 800 | return $this->is_subnet_favourite ($subnetId); |
@@ -1110,7 +1110,7 @@ discard block |
||
1110 | 1110 | * |
1111 | 1111 | * |
1112 | 1112 | * @access private |
1113 | - * @param mixed $username |
|
1113 | + * @param string $username |
|
1114 | 1114 | * @param mixed $password |
1115 | 1115 | * @return void |
1116 | 1116 | */ |
@@ -1238,7 +1238,7 @@ discard block |
||
1238 | 1238 | * |
1239 | 1239 | * @access public |
1240 | 1240 | * @param mixed $input |
1241 | - * @return void |
|
1241 | + * @return string |
|
1242 | 1242 | */ |
1243 | 1243 | public function crypt_user_pass ($input) { |
1244 | 1244 | # initialize salt |
@@ -1257,7 +1257,7 @@ discard block |
||
1257 | 1257 | * this function will detect highest crypt type to use for system |
1258 | 1258 | * |
1259 | 1259 | * @access public |
1260 | - * @return void |
|
1260 | + * @return string|null |
|
1261 | 1261 | */ |
1262 | 1262 | private function detect_crypt_type () { |
1263 | 1263 | if(CRYPT_SHA512 == 1) { return '$6$rounds=3000$'; } |
@@ -1271,7 +1271,7 @@ discard block |
||
1271 | 1271 | * Returns crypt type used to encrypt password |
1272 | 1272 | * |
1273 | 1273 | * @access public |
1274 | - * @return void |
|
1274 | + * @return string |
|
1275 | 1275 | */ |
1276 | 1276 | public function return_crypt_type () { |
1277 | 1277 | if(CRYPT_SHA512 == 1) { return 'CRYPT_SHA512'; } |
@@ -1314,7 +1314,7 @@ discard block |
||
1314 | 1314 | * |
1315 | 1315 | * @access public |
1316 | 1316 | * @param mixed $post //posted user details |
1317 | - * @return void |
|
1317 | + * @return boolean |
|
1318 | 1318 | */ |
1319 | 1319 | public function self_update($post) { |
1320 | 1320 | # set items to update |
@@ -1356,7 +1356,7 @@ discard block |
||
1356 | 1356 | * |
1357 | 1357 | * @access public |
1358 | 1358 | * @param mixed $widgets |
1359 | - * @return void |
|
1359 | + * @return boolean |
|
1360 | 1360 | */ |
1361 | 1361 | public function self_update_widgets ($widgets) { |
1362 | 1362 | # update |
@@ -1373,7 +1373,7 @@ discard block |
||
1373 | 1373 | * Updates last users login time |
1374 | 1374 | * |
1375 | 1375 | * @access public |
1376 | - * @return void |
|
1376 | + * @return null|false |
|
1377 | 1377 | */ |
1378 | 1378 | public function update_login_time () { |
1379 | 1379 | # fix for older versions |
@@ -1449,7 +1449,7 @@ discard block |
||
1449 | 1449 | * adds new IP to block or updates count if already present |
1450 | 1450 | * |
1451 | 1451 | * @access private |
1452 | - * @return void |
|
1452 | + * @return false|null |
|
1453 | 1453 | */ |
1454 | 1454 | private function block_ip () { |
1455 | 1455 | # validate IP |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * @access public |
89 | 89 | * @param mixed $username (default: null) |
90 | 90 | * @param mixed $password (default: null) |
91 | - * @param mixed $charset (default: null) |
|
91 | + * @param string $charset (default: null) |
|
92 | 92 | * @param mixed $ssl (default: null) |
93 | 93 | * @return void |
94 | 94 | */ |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @access public |
109 | 109 | * @static |
110 | 110 | * @param mixed $date (default: null) |
111 | - * @return void |
|
111 | + * @return string |
|
112 | 112 | */ |
113 | 113 | public static function toDate($date = null) { |
114 | 114 | if (is_int($date)) { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * makeDsn function. |
153 | 153 | * |
154 | 154 | * @access protected |
155 | - * @return void |
|
155 | + * @return string |
|
156 | 156 | */ |
157 | 157 | protected function makeDsn() { |
158 | 158 | return ':charset=' . $this->charset; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * Are we currently connected to the database |
219 | 219 | * |
220 | 220 | * @access public |
221 | - * @return void |
|
221 | + * @return boolean |
|
222 | 222 | */ |
223 | 223 | public function isConnected() { |
224 | 224 | return ($this->pdo !== null); |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | * Note: no objects are fetched |
240 | 240 | * |
241 | 241 | * @access public |
242 | - * @param mixed $query |
|
242 | + * @param string $query |
|
243 | 243 | * @param array $values (default: array()) |
244 | 244 | * @return void |
245 | 245 | */ |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | * @param string $query (default: null) |
464 | 464 | * @param array $values (default: array()) |
465 | 465 | * @param mixed $id (default: null) |
466 | - * @return void |
|
466 | + * @return boolean |
|
467 | 467 | */ |
468 | 468 | public function objectExists($tableName, $query = null, $values = array(), $id = null) { |
469 | 469 | return is_object($this->getObject($tableName, $id)); |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | * @param mixed $query (default: null) |
521 | 521 | * @param array $values (default: array()) |
522 | 522 | * @param mixed $callback (default: null) |
523 | - * @return void |
|
523 | + * @return boolean |
|
524 | 524 | */ |
525 | 525 | public function getObjectsQueryIncremental($query = null, $values = array(), $callback = null) { |
526 | 526 | if (!$this->isConnected()) $this->connect(); |
@@ -578,7 +578,7 @@ discard block |
||
578 | 578 | * Get a single object from the database |
579 | 579 | * |
580 | 580 | * @access public |
581 | - * @param mixed $tableName |
|
581 | + * @param string $tableName |
|
582 | 582 | * @param mixed $id (default: null) |
583 | 583 | * @param string $class (default: 'stdClass') |
584 | 584 | * @return void |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | * makeDsn function |
907 | 907 | * |
908 | 908 | * @access protected |
909 | - * @return void |
|
909 | + * @return string |
|
910 | 910 | */ |
911 | 911 | protected function makeDsn() { |
912 | 912 | # for installation |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * Modify subnet details main method |
152 | 152 | * |
153 | 153 | * @access public |
154 | - * @param mixed $action |
|
154 | + * @param string $action |
|
155 | 155 | * @param mixed $values |
156 | 156 | * @return void |
157 | 157 | */ |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * |
174 | 174 | * @access private |
175 | 175 | * @param mixed $values |
176 | - * @return void |
|
176 | + * @return boolean |
|
177 | 177 | */ |
178 | 178 | private function subnet_add ($values) { |
179 | 179 | # null empty values |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * |
202 | 202 | * @access private |
203 | 203 | * @param mixed $values |
204 | - * @return void |
|
204 | + * @return boolean |
|
205 | 205 | */ |
206 | 206 | private function subnet_edit ($values) { |
207 | 207 | # save old values |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * |
231 | 231 | * @access private |
232 | 232 | * @param mixed $id |
233 | - * @return void |
|
233 | + * @return boolean |
|
234 | 234 | */ |
235 | 235 | private function subnet_delete ($id) { |
236 | 236 | # save old values |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | * |
259 | 259 | * @access public |
260 | 260 | * @param int $subnetId |
261 | - * @return void |
|
261 | + * @return boolean |
|
262 | 262 | */ |
263 | 263 | public function subnet_truncate ($subnetId) { |
264 | 264 | # save old values |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | * @param mixed $subnetId |
281 | 281 | * @param int $subnet |
282 | 282 | * @param int $mask |
283 | - * @return void |
|
283 | + * @return boolean |
|
284 | 284 | */ |
285 | 285 | private function subnet_resize ($subnetId, $subnet, $mask) { |
286 | 286 | # save old values |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | * @param mixed $prefix |
307 | 307 | * @param string $group (default: "yes") |
308 | 308 | * @param string $strict (default: "yes") |
309 | - * @return void |
|
309 | + * @return boolean |
|
310 | 310 | */ |
311 | 311 | public function subnet_split ($subnet_old, $number, $prefix, $group="yes", $strict="yes") { |
312 | 312 | |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | * @access private |
544 | 544 | * @param mixed $subnetId |
545 | 545 | * @param mixed $vlanId |
546 | - * @return void |
|
546 | + * @return boolean |
|
547 | 547 | */ |
548 | 548 | private function is_subnet_in_vlan ($subnetId, $vlanId) { |
549 | 549 | # fetch subnet details |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | * @access private |
607 | 607 | * @param mixed $subnetId |
608 | 608 | * @param mixed $vrfId |
609 | - * @return void |
|
609 | + * @return boolean |
|
610 | 610 | */ |
611 | 611 | private function is_subnet_in_vrf ($subnetId, $vrfId) { |
612 | 612 | # fetch subnet details |
@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | * |
725 | 725 | * @access public |
726 | 726 | * @param mixed $subnetId |
727 | - * @return void |
|
727 | + * @return boolean |
|
728 | 728 | */ |
729 | 729 | public function has_slaves ($subnetId) { |
730 | 730 | // NULL subnetId cannot have slaves |
@@ -741,7 +741,7 @@ discard block |
||
741 | 741 | * |
742 | 742 | * @access public |
743 | 743 | * @param mixed $subnetId |
744 | - * @return void |
|
744 | + * @return null|false |
|
745 | 745 | */ |
746 | 746 | public function fetch_subnet_slaves ($subnetId) { |
747 | 747 | // fetch |
@@ -919,7 +919,7 @@ discard block |
||
919 | 919 | * @param mixed $used_hosts (int) |
920 | 920 | * @param mixed $netmask (int) |
921 | 921 | * @param mixed $subnet (int) |
922 | - * @param bin $isFull (default: 0) |
|
922 | + * @param integer $isFull (default: 0) |
|
923 | 923 | * @return void |
924 | 924 | */ |
925 | 925 | public function calculate_subnet_usage ($used_hosts, $netmask, $subnet, $isFull=0) { |
@@ -952,7 +952,7 @@ discard block |
||
952 | 952 | * @param mixed $subnet //subnet in decimal format |
953 | 953 | * @param mixed $bitmask //netmask in decimal format |
954 | 954 | * @param mixed $addresses //all addresses to be calculated, either all slave or per subnet |
955 | - * @param bin $isFull //if subnet is marked as full |
|
955 | + * @param integer $isFull //if subnet is marked as full |
|
956 | 956 | * @return void |
957 | 957 | */ |
958 | 958 | public function calculate_subnet_usage_detailed ($subnet, $bitmask, $addresses, $isFull=0) { |
@@ -1109,7 +1109,7 @@ discard block |
||
1109 | 1109 | * |
1110 | 1110 | * @access public |
1111 | 1111 | * @param mixed $netmask |
1112 | - * @param mixed $ipversion |
|
1112 | + * @param string $ipversion |
|
1113 | 1113 | * @param bool $strict (default: true) |
1114 | 1114 | * @return void |
1115 | 1115 | */ |
@@ -1123,7 +1123,8 @@ discard block |
||
1123 | 1123 | * |
1124 | 1124 | * @access public |
1125 | 1125 | * @param mixed $netmask |
1126 | - * @return void |
|
1126 | + * @param boolean $strict |
|
1127 | + * @return integer |
|
1127 | 1128 | */ |
1128 | 1129 | public function get_max_IPv4_hosts ($netmask, $strict) { |
1129 | 1130 | if($netmask==31) { return 2; } |
@@ -1137,7 +1138,7 @@ discard block |
||
1137 | 1138 | * |
1138 | 1139 | * @access public |
1139 | 1140 | * @param mixed $netmask |
1140 | - * @return void |
|
1141 | + * @return string |
|
1141 | 1142 | */ |
1142 | 1143 | public function get_max_IPv6_hosts ($netmask) { |
1143 | 1144 | return gmp_strval(gmp_pow(2, 128 - $netmask)); |
@@ -1148,7 +1149,7 @@ discard block |
||
1148 | 1149 | * |
1149 | 1150 | * @access public |
1150 | 1151 | * @param mixed $address |
1151 | - * @return void |
|
1152 | + * @return integer |
|
1152 | 1153 | */ |
1153 | 1154 | private function get_max_netmask ($address) { |
1154 | 1155 | return $this->identify_address($address)=="IPv6" ? 128 : 32; |
@@ -1275,7 +1276,7 @@ discard block |
||
1275 | 1276 | * Verifies CIDR address |
1276 | 1277 | * |
1277 | 1278 | * @access public |
1278 | - * @param mixed $cidr |
|
1279 | + * @param boolean|string $cidr |
|
1279 | 1280 | * @param bool $issubnet (default: true) |
1280 | 1281 | * @return void |
1281 | 1282 | */ |
@@ -1357,7 +1358,7 @@ discard block |
||
1357 | 1358 | * @param int $sectionId |
1358 | 1359 | * @param mixed $new_subnet (cidr) |
1359 | 1360 | * @param int $vrfId (default: 0) |
1360 | - * @return void |
|
1361 | + * @return string|false |
|
1361 | 1362 | */ |
1362 | 1363 | public function verify_subnet_overlapping ($sectionId, $new_subnet, $vrfId = 0) { |
1363 | 1364 | # fetch section subnets |
@@ -1389,10 +1390,10 @@ discard block |
||
1389 | 1390 | * |
1390 | 1391 | * @access public |
1391 | 1392 | * @param int $sectionId |
1392 | - * @param mixed $new_subnet |
|
1393 | + * @param string $new_subnet |
|
1393 | 1394 | * @param int $old_subnet_id |
1394 | 1395 | * @param int $vrfId (default: 0) |
1395 | - * @return void |
|
1396 | + * @return string|false |
|
1396 | 1397 | */ |
1397 | 1398 | public function verify_subnet_resize_overlapping ($sectionId, $new_subnet, $old_subnet_id, $vrfId = 0) { |
1398 | 1399 | # fetch section subnets |
@@ -1435,7 +1436,7 @@ discard block |
||
1435 | 1436 | * @param CIDR $new_subnet |
1436 | 1437 | * @param int $vrfId (default: 0) |
1437 | 1438 | * @param int $masterSubnetId (default: 0) |
1438 | - * @return void |
|
1439 | + * @return string|false |
|
1439 | 1440 | */ |
1440 | 1441 | public function verify_nested_subnet_overlapping ($sectionId, $new_subnet, $vrfId = 0, $masterSubnetId = 0) { |
1441 | 1442 | # fetch all slave subnets |
@@ -1467,7 +1468,7 @@ discard block |
||
1467 | 1468 | * @access public |
1468 | 1469 | * @param CIDR $subnet1 |
1469 | 1470 | * @param CIDR $subnet2 |
1470 | - * @return void |
|
1471 | + * @return boolean |
|
1471 | 1472 | */ |
1472 | 1473 | public function verify_overlapping ($subnet1, $subnet2) { |
1473 | 1474 | return $this->identify_address ($subnet1)=="IPv4" ? $this->verify_IPv4_subnet_overlapping ($subnet1, $subnet2) : $this->verify_IPv6_subnet_overlapping ($subnet1, $subnet2); |
@@ -1538,8 +1539,8 @@ discard block |
||
1538 | 1539 | * |
1539 | 1540 | * @access public |
1540 | 1541 | * @param mixed $masterSubnetId |
1541 | - * @param mixed $cidr |
|
1542 | - * @return void |
|
1542 | + * @param string $cidr |
|
1543 | + * @return boolean |
|
1543 | 1544 | */ |
1544 | 1545 | public function verify_subnet_nesting ($masterSubnetId, $cidr) { |
1545 | 1546 | //first get details for root subnet |
@@ -1572,7 +1573,7 @@ discard block |
||
1572 | 1573 | * @param mixed $vrfId //vrfId |
1573 | 1574 | * @param mixed $masterSubnetId //master Subnet Id |
1574 | 1575 | * @param mixed $mask_old //old mask |
1575 | - * @param mixed $sectionId //section ID |
|
1576 | + * @param integer $sectionId //section ID |
|
1576 | 1577 | * @return void |
1577 | 1578 | */ |
1578 | 1579 | public function verify_subnet_resize ($subnet, $mask, $subnetId, $vrfId, $masterSubnetId, $mask_old, $sectionId=0) { |
@@ -1804,8 +1805,8 @@ discard block |
||
1804 | 1805 | * |
1805 | 1806 | * @access public |
1806 | 1807 | * @param mixed $cidr1 |
1807 | - * @param mixed $cidr2 |
|
1808 | - * @return void |
|
1808 | + * @param string $cidr2 |
|
1809 | + * @return boolean |
|
1809 | 1810 | */ |
1810 | 1811 | public function is_subnet_inside_subnet ($cidr1, $cidr2) { |
1811 | 1812 | $type = $this->identify_address ($cidr1); |
@@ -1819,7 +1820,7 @@ discard block |
||
1819 | 1820 | * @access private |
1820 | 1821 | * @param mixed $cidr1 |
1821 | 1822 | * @param mixed $cidr2 |
1822 | - * @return void |
|
1823 | + * @return boolean |
|
1823 | 1824 | */ |
1824 | 1825 | private function is_IPv4_subnet_inside_subnet ($cidr1, $cidr2) { |
1825 | 1826 | # Initialize PEAR NET object |
@@ -1839,7 +1840,7 @@ discard block |
||
1839 | 1840 | * @access private |
1840 | 1841 | * @param mixed $cidr1 |
1841 | 1842 | * @param mixed $cidr2 |
1842 | - * @return void |
|
1843 | + * @return boolean |
|
1843 | 1844 | */ |
1844 | 1845 | private function is_IPv6_subnet_inside_subnet ($cidr1, $cidr2) { |
1845 | 1846 | //mask 2 must be bigger than mask 1 |
@@ -1935,7 +1936,7 @@ discard block |
||
1935 | 1936 | * Finds inactive hosts |
1936 | 1937 | * |
1937 | 1938 | * @access public |
1938 | - * @param mixed $timelimit |
|
1939 | + * @param integer $timelimit |
|
1939 | 1940 | * @param int $limit (default: 100) |
1940 | 1941 | * @return void |
1941 | 1942 | */ |
@@ -2034,7 +2035,7 @@ discard block |
||
2034 | 2035 | * |
2035 | 2036 | * @access public |
2036 | 2037 | * @param mixed $address |
2037 | - * @return void |
|
2038 | + * @return boolean |
|
2038 | 2039 | */ |
2039 | 2040 | public function is_multicast ($address) { |
2040 | 2041 | # IPv4 |
@@ -2063,7 +2064,7 @@ discard block |
||
2063 | 2064 | * |
2064 | 2065 | * @access public |
2065 | 2066 | * @param mixed $address |
2066 | - * @return void |
|
2067 | + * @return false|string |
|
2067 | 2068 | */ |
2068 | 2069 | public function create_multicast_mac ($address) { |
2069 | 2070 | // first verify that it is multicast |
@@ -2104,12 +2105,12 @@ discard block |
||
2104 | 2105 | * - vlan : within l2 domain |
2105 | 2106 | * |
2106 | 2107 | * @access private |
2107 | - * @param mixed $mac |
|
2108 | + * @param string $mac |
|
2108 | 2109 | * @param mixed $sectionId |
2109 | 2110 | * @param mixed $vlanId |
2110 | 2111 | * @param string $unique_required (default: "vlan") |
2111 | 2112 | * @param int $address_id (dafault: 0) |
2112 | - * @return void |
|
2113 | + * @return boolean |
|
2113 | 2114 | */ |
2114 | 2115 | private function multicast_address_exists ($mac, $sectionId, $vlanId, $unique_required = "vlan", $address_id = 0) { |
2115 | 2116 | // if vlan fetch l2 domainid |
@@ -2164,7 +2165,7 @@ discard block |
||
2164 | 2165 | * @param mixed $vlanId |
2165 | 2166 | * @param mixed $unique_required |
2166 | 2167 | * @param int $address_id (defaut: 0) |
2167 | - * @return true if ok, else error text to be displayed |
|
2168 | + * @return boolean|string if ok, else error text to be displayed |
|
2168 | 2169 | */ |
2169 | 2170 | public function validate_multicast_mac ($mac, $sectionId, $vlanId, $unique_required="vlan", $address_id = 0) { |
2170 | 2171 | // first put it to common format (1) |
@@ -2323,7 +2324,7 @@ discard block |
||
2323 | 2324 | * @param mixed $user |
2324 | 2325 | * @param mixed $section_subnets //array of all subnets in section |
2325 | 2326 | * @param int $rootId (default: 0) |
2326 | - * @return void |
|
2327 | + * @return string |
|
2327 | 2328 | */ |
2328 | 2329 | public function print_subnets_menu( $user, $section_subnets, $rootId = 0 ) { |
2329 | 2330 | # open / close via cookie |
@@ -2485,7 +2486,7 @@ discard block |
||
2485 | 2486 | * @param mixed $vlans |
2486 | 2487 | * @param mixed $section_subnets |
2487 | 2488 | * @param mixed $sectionId |
2488 | - * @return void |
|
2489 | + * @return string |
|
2489 | 2490 | */ |
2490 | 2491 | public function print_vlan_menu( $user, $vlans, $section_subnets, $sectionId ) { |
2491 | 2492 | # initialize html array |
@@ -2583,7 +2584,7 @@ discard block |
||
2583 | 2584 | * @param mixed $vrfs |
2584 | 2585 | * @param mixed $section_subnets |
2585 | 2586 | * @param mixed $sectionId |
2586 | - * @return void |
|
2587 | + * @return string |
|
2587 | 2588 | */ |
2588 | 2589 | public function print_vrf_menu( $user, $vrfs, $section_subnets, $sectionId ) { |
2589 | 2590 | # initialize html array |
@@ -2675,7 +2676,7 @@ discard block |
||
2675 | 2676 | * @param array $user |
2676 | 2677 | * @param array $subnets |
2677 | 2678 | * @param array $custom_fields |
2678 | - * @return none - print |
|
2679 | + * @return false|null - print |
|
2679 | 2680 | */ |
2680 | 2681 | public function print_subnets_tools( $user, $subnets, $custom_fields ) { |
2681 | 2682 | |
@@ -2934,7 +2935,7 @@ discard block |
||
2934 | 2935 | * |
2935 | 2936 | * @access public |
2936 | 2937 | * @param mixed $sectionId |
2937 | - * @param string $current_master (default: "0") |
|
2938 | + * @param integer $current_master (default: "0") |
|
2938 | 2939 | * @param boolean $isFolder (default: false) |
2939 | 2940 | * @return void |
2940 | 2941 | */ |
@@ -3120,7 +3121,7 @@ discard block |
||
3120 | 3121 | * @access public |
3121 | 3122 | * @param mixed $sectionId |
3122 | 3123 | * @param mixed $subnetMasterId |
3123 | - * @return void |
|
3124 | + * @return string |
|
3124 | 3125 | */ |
3125 | 3126 | public function subnet_dropdown_print_available($sectionId, $subnetMasterId ) { |
3126 | 3127 | |
@@ -3218,8 +3219,8 @@ discard block |
||
3218 | 3219 | * Take in decimal from IPv6 address and add one to it |
3219 | 3220 | * |
3220 | 3221 | * @access public |
3221 | - * @param mixed $decimalIpv6 |
|
3222 | - * @return void |
|
3222 | + * @param string|false $decimalIpv6 |
|
3223 | + * @return string |
|
3223 | 3224 | */ |
3224 | 3225 | public function subnet_dropdown_ipv6_decimal_add_one ($decimalIpv6) { |
3225 | 3226 | # Take digit, make array of earch number and reverse it |