@@ -811,6 +811,9 @@ discard block |
||
811 | 811 | $this->myDOMXPath = new DOMXPath($this->myOwnerDocument->myDOMNode); |
812 | 812 | } |
813 | 813 | |
814 | + /** |
|
815 | + * @param string $eval_str |
|
816 | + */ |
|
814 | 817 | function xpath_eval($eval_str, $contextnode = null) |
815 | 818 | { |
816 | 819 | if (method_exists($this->myDOMXPath, 'evaluate')) { |
@@ -824,6 +827,10 @@ discard block |
||
824 | 827 | return ($xp->type === XPATH_UNDEFINED) ? false : $xp; |
825 | 828 | } |
826 | 829 | |
830 | + /** |
|
831 | + * @param string $prefix |
|
832 | + * @param string $namespaceURI |
|
833 | + */ |
|
827 | 834 | function xpath_register_ns($prefix, $namespaceURI) |
828 | 835 | { |
829 | 836 | return $this->myDOMXPath->registerNamespace($prefix, $namespaceURI); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * This method returns the name of the directory where PGT's should be stored |
62 | 62 | * on the filesystem. |
63 | 63 | * |
64 | - * @return the name of a directory (with leading and trailing '/') |
|
64 | + * @return string name of a directory (with leading and trailing '/') |
|
65 | 65 | * |
66 | 66 | * @private |
67 | 67 | */ |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * This method returns the format to use when storing PGT's on the filesystem. |
83 | 83 | * |
84 | - * @return a string corresponding to the format used (plain or xml). |
|
84 | + * @return string string corresponding to the format used (plain or xml). |
|
85 | 85 | * |
86 | 86 | * @private |
87 | 87 | */ |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * The constructor of the class, should be called only by inherited classes. |
58 | 58 | * |
59 | - * @param $cas_parent the CASclient instance that creates the current object. |
|
59 | + * @param CASClient $cas_parent the CASclient instance that creates the current object. |
|
60 | 60 | * |
61 | 61 | * @protected |
62 | 62 | */ |
@@ -242,6 +242,9 @@ |
||
242 | 242 | return $hmac; |
243 | 243 | } |
244 | 244 | |
245 | +/** |
|
246 | + * @param string|false $text |
|
247 | + */ |
|
245 | 248 | function _openid_sha1($text) { |
246 | 249 | $hex = sha1($text); |
247 | 250 | $raw = ''; |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * |
36 | + * @param ShibbolethUser $data |
|
36 | 37 | * @return User |
37 | 38 | */ |
38 | 39 | public static function create($data = null) |
@@ -133,6 +134,7 @@ discard block |
||
133 | 134 | |
134 | 135 | /** |
135 | 136 | * |
137 | + * @param string $value |
|
136 | 138 | * @return User |
137 | 139 | */ |
138 | 140 | public function get_by_user_id($value) |
@@ -169,6 +171,7 @@ discard block |
||
169 | 171 | |
170 | 172 | /** |
171 | 173 | * |
174 | + * @param string $value |
|
172 | 175 | * @return bool |
173 | 176 | */ |
174 | 177 | public function username_exists($value) |
@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | * @param int $questionId Question ID |
26 | 26 | * @param int $resultsDisabled |
27 | 27 | * @param string $originalStudentAnswer |
28 | + * @param boolean $showTotalScoreAndUserChoices |
|
28 | 29 | * |
29 | 30 | * @return void |
30 | 31 | */ |
@@ -71,6 +72,11 @@ discard block |
||
71 | 72 | * @param string Answer text |
72 | 73 | * @param int Exercise ID |
73 | 74 | * @param int Question ID |
75 | + * @param integer $feedback_type |
|
76 | + * @param string $answer |
|
77 | + * @param integer $id |
|
78 | + * @param integer $questionId |
|
79 | + * @param boolean|string $showTotalScoreAndUserChoices |
|
74 | 80 | * @return void |
75 | 81 | */ |
76 | 82 | public static function display_calculated_answer( |
@@ -110,6 +116,9 @@ discard block |
||
110 | 116 | * @param string Answer text |
111 | 117 | * @param int Exercise ID |
112 | 118 | * @param int Question ID |
119 | + * @param integer $feedback_type |
|
120 | + * @param integer $exe_id |
|
121 | + * @param integer $questionId |
|
113 | 122 | * @return void |
114 | 123 | */ |
115 | 124 | public static function display_free_answer( |
@@ -139,11 +148,11 @@ discard block |
||
139 | 148 | } |
140 | 149 | |
141 | 150 | /** |
142 | - * @param $feedback_type |
|
151 | + * @param integer $feedback_type |
|
143 | 152 | * @param $answer |
144 | - * @param $id |
|
145 | - * @param $questionId |
|
146 | - * @param null $nano |
|
153 | + * @param integer $id |
|
154 | + * @param integer $questionId |
|
155 | + * @param Nanogong|null $nano |
|
147 | 156 | * @param int $results_disabled |
148 | 157 | */ |
149 | 158 | public static function display_oral_expression_answer( |
@@ -195,6 +204,7 @@ discard block |
||
195 | 204 | * @param string $answerComment |
196 | 205 | * @param int $resultsDisabled |
197 | 206 | * @param int $orderColor |
207 | + * @param boolean $showTotalScoreAndUserChoices |
|
198 | 208 | */ |
199 | 209 | public static function display_hotspot_answer( |
200 | 210 | $feedback_type, |
@@ -279,6 +289,13 @@ discard block |
||
279 | 289 | * @param integer Exercise ID |
280 | 290 | * @param integer Question ID |
281 | 291 | * @param boolean Whether to show the answer comment or not |
292 | + * @param integer $answerType |
|
293 | + * @param string $answer |
|
294 | + * @param string $answerComment |
|
295 | + * @param integer $answerCorrect |
|
296 | + * @param integer $id |
|
297 | + * @param integer $questionId |
|
298 | + * @param boolean $showTotalScoreAndUserChoices |
|
282 | 299 | * @return void |
283 | 300 | */ |
284 | 301 | public static function display_unique_or_multiple_answer( |
@@ -375,6 +392,14 @@ discard block |
||
375 | 392 | * @param integer Exercise ID |
376 | 393 | * @param integer Question ID |
377 | 394 | * @param boolean Whether to show the answer comment or not |
395 | + * @param integer $feedback_type |
|
396 | + * @param integer $answerType |
|
397 | + * @param string $answer |
|
398 | + * @param string $answerComment |
|
399 | + * @param integer $answerCorrect |
|
400 | + * @param integer $id |
|
401 | + * @param integer $questionId |
|
402 | + * @param boolean $showTotalScoreAndUserChoices |
|
378 | 403 | * @return void |
379 | 404 | */ |
380 | 405 | public static function display_multiple_answer_true_false( |
@@ -479,6 +504,14 @@ discard block |
||
479 | 504 | * @param integer Exercise ID |
480 | 505 | * @param integer Question ID |
481 | 506 | * @param boolean Whether to show the answer comment or not |
507 | + * @param integer $feedback_type |
|
508 | + * @param integer $answerType |
|
509 | + * @param string $answer |
|
510 | + * @param string $answerComment |
|
511 | + * @param integer $answerCorrect |
|
512 | + * @param integer $id |
|
513 | + * @param integer $questionId |
|
514 | + * @param boolean $showTotalScoreAndUserChoices |
|
482 | 515 | * @return void |
483 | 516 | */ |
484 | 517 | public static function display_multiple_answer_combination_true_false( |
@@ -91,7 +91,7 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * @param array $array |
|
94 | + * @param string[] $array |
|
95 | 95 | */ |
96 | 96 | public function set_tools_to_build($array) |
97 | 97 | { |
@@ -1212,6 +1212,7 @@ |
||
1212 | 1212 | * Restore a forum-post |
1213 | 1213 | * @TODO Restore tree-structure of posts. For example: attachments to posts. |
1214 | 1214 | * @param false|string $topic_id |
1215 | + * @param false|string $forum_id |
|
1215 | 1216 | */ |
1216 | 1217 | public function restore_post($id, $topic_id, $forum_id, $sessionId = 0) |
1217 | 1218 | { |
@@ -267,7 +267,7 @@ |
||
267 | 267 | * @param string $author |
268 | 268 | * @param string $filename |
269 | 269 | * @param int $filesize |
270 | - * @param array $recipient_ids |
|
270 | + * @param unknown_type|null $recipient_ids |
|
271 | 271 | */ |
272 | 272 | public function _createNewSentWork($uploader_id, $title, $description, $author, $filename, $filesize, $recipient_ids) |
273 | 273 | { |