@@ -76,9 +76,6 @@ |
||
| 76 | 76 | * It is CRUTCIAL that the constructor sets $this->supportedEapMethods to an array of methods |
| 77 | 77 | * available for the particular device. |
| 78 | 78 | * {@source} |
| 79 | - * @param string $device a pointer to a device module, which must |
|
| 80 | - * be an index of one of the devices defined in the {@link Devices} |
|
| 81 | - * array in {@link devices.php}. |
|
| 82 | 79 | * @final not to be redefined |
| 83 | 80 | */ |
| 84 | 81 | final public function __construct() { |
@@ -69,11 +69,19 @@ discard block |
||
| 69 | 69 | public function areAttributes() { |
| 70 | 70 | return empty($this->attributes)?0:1; |
| 71 | 71 | } |
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @param string $attribute |
|
| 75 | + */ |
|
| 72 | 76 | public function setAttribute($attribute,$value) { |
| 73 | 77 | if( ! isset($this->attributes)) |
| 74 | 78 | $this->attributes = []; |
| 75 | 79 | $this->attributes[$attribute] = $value; |
| 76 | 80 | } |
| 81 | + |
|
| 82 | + /** |
|
| 83 | + * @param string $property |
|
| 84 | + */ |
|
| 77 | 85 | public function setProperty($property,$value) { |
| 78 | 86 | $this->$property = $value; |
| 79 | 87 | } |
@@ -255,6 +263,10 @@ discard block |
||
| 255 | 263 | } |
| 256 | 264 | } |
| 257 | 265 | |
| 266 | +/** |
|
| 267 | + * @param SimpleXMLElement $node |
|
| 268 | + * @param EAPIdentityProvider $object |
|
| 269 | + */ |
|
| 258 | 270 | function marshalObject($node, $object) { |
| 259 | 271 | |
| 260 | 272 | $name = get_class($object); |
@@ -129,6 +129,9 @@ |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | |
| 132 | +/** |
|
| 133 | + * @param string $attr_name |
|
| 134 | + */ |
|
| 132 | 135 | private function getSimpleMLAttribute($attr_name) { |
| 133 | 136 | if(isset($this->attributes[$attr_name][0]) && $this->attributes[$attr_name][0]) { |
| 134 | 137 | $a = $this->attributes[$attr_name]; |
@@ -201,6 +201,9 @@ discard block |
||
| 201 | 201 | } |
| 202 | 202 | */ |
| 203 | 203 | |
| 204 | +/** |
|
| 205 | + * @param false|string $filename |
|
| 206 | + */ |
|
| 204 | 207 | function check_upload_sanity($optiontype, $filename) { |
| 205 | 208 | //echo "check_upload_sanity:$optiontype:$filename<br>\n"; |
| 206 | 209 | // we check logo_file with ImageMagick |
@@ -257,6 +260,9 @@ discard block |
||
| 257 | 260 | return FALSE; |
| 258 | 261 | } |
| 259 | 262 | |
| 263 | +/** |
|
| 264 | + * @param boolean $checkpublic |
|
| 265 | + */ |
|
| 260 | 266 | function getBlobFromDB($ref, $checkpublic) { |
| 261 | 267 | |
| 262 | 268 | $reference = valid_DB_reference($ref); |
@@ -294,6 +300,9 @@ discard block |
||
| 294 | 300 | return $blob; |
| 295 | 301 | } |
| 296 | 302 | |
| 303 | +/** |
|
| 304 | + * @param integer $number |
|
| 305 | + */ |
|
| 297 | 306 | function display_size($number) { |
| 298 | 307 | if ($number > 1024 * 1024) |
| 299 | 308 | return round($number / 1024 / 1024, 2) . " MiB"; |
@@ -164,6 +164,9 @@ discard block |
||
| 164 | 164 | return $input; |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | +/** |
|
| 168 | + * @return string |
|
| 169 | + */ |
|
| 167 | 170 | function valid_coord_serialized($input) { |
| 168 | 171 | if (is_array(unserialize($input))) { |
| 169 | 172 | $tentative = unserialize($input); |
@@ -182,6 +185,9 @@ discard block |
||
| 182 | 185 | } |
| 183 | 186 | } |
| 184 | 187 | |
| 188 | +/** |
|
| 189 | + * @return string |
|
| 190 | + */ |
|
| 185 | 191 | function valid_boolean($input) { |
| 186 | 192 | if ($input != "on") { |
| 187 | 193 | echo input_validation_error(_("Unknown state of boolean option!")); |
@@ -353,8 +353,7 @@ |
||
| 353 | 353 | |
| 354 | 354 | /** |
| 355 | 355 | * returns the navigation link to a given GUI page |
| 356 | - * @param int $new_page new page number |
|
| 357 | - * @param string $text link text |
|
| 356 | + * @param string $arg_name |
|
| 358 | 357 | * @return string |
| 359 | 358 | */ |
| 360 | 359 | |
@@ -30,6 +30,9 @@ discard block |
||
| 30 | 30 | return $cat; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | +/** |
|
| 34 | + * @param Type $pagetitle |
|
| 35 | + */ |
|
| 33 | 36 | function defaultPagePrelude($pagetitle, $auth_required = TRUE) { |
| 34 | 37 | if ($auth_required == TRUE) { |
| 35 | 38 | require_once(dirname(dirname(dirname(__FILE__))) . "/admin/inc/auth.inc.php"); |
@@ -66,6 +69,9 @@ discard block |
||
| 66 | 69 | return $Cat; |
| 67 | 70 | } |
| 68 | 71 | |
| 72 | +/** |
|
| 73 | + * @param Type $area |
|
| 74 | + */ |
|
| 69 | 75 | function productheader($area, $language) { |
| 70 | 76 | echo "<div class='maincontent'>"; |
| 71 | 77 | // echo "You are here: ".$_SERVER['REQUEST_URI']; |