@@ -280,6 +280,7 @@ |
||
280 | 280 | } |
281 | 281 | /** |
282 | 282 | * Get dummy titles, descriptions and texts |
283 | + * @param string $type |
|
283 | 284 | */ |
284 | 285 | function get_dummy_content($type) |
285 | 286 | { |
@@ -50,9 +50,6 @@ |
||
50 | 50 | * @param int $id |
51 | 51 | * @param string $title |
52 | 52 | * @param string $content |
53 | - * @param string $date |
|
54 | - * @param string $hour |
|
55 | - * @param int $duration |
|
56 | 53 | */ |
57 | 54 | public function __construct( |
58 | 55 | $id, |
@@ -115,6 +115,9 @@ |
||
115 | 115 | $this->answers[] = $answer; |
116 | 116 | } |
117 | 117 | |
118 | + /** |
|
119 | + * @param QuizQuestionOption $option_obj |
|
120 | + */ |
|
118 | 121 | public function add_option($option_obj) |
119 | 122 | { |
120 | 123 | $this->question_options[$option_obj->obj->id] = $option_obj; |
@@ -128,7 +128,7 @@ |
||
128 | 128 | |
129 | 129 | /** |
130 | 130 | * Resturns the type of this resource |
131 | - * @return constant The type. |
|
131 | + * @return integer The type. |
|
132 | 132 | */ |
133 | 133 | public function get_type() |
134 | 134 | { |
@@ -65,6 +65,9 @@ |
||
65 | 65 | |
66 | 66 | /* FUNCTIONS */ |
67 | 67 | |
68 | +/** |
|
69 | + * @param string $name |
|
70 | + */ |
|
68 | 71 | function make_select_session_list($name, $sessions, $attr = array()) |
69 | 72 | { |
70 | 73 |
@@ -50,6 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Returns a quarter from a month |
52 | 52 | * @param string The month (digit), with or without leading 0 |
53 | + * @param string $month |
|
53 | 54 | * @return int The yearly quarter (1, 2, 3 or 4) in which this month lies |
54 | 55 | */ |
55 | 56 | function getQuarter($month) |
@@ -96,6 +97,7 @@ discard block |
||
96 | 97 | /** |
97 | 98 | * Returns the first month of the quarter |
98 | 99 | * @param int Quarter |
100 | + * @param integer $quarter |
|
99 | 101 | * @return string Number of the month, with leading 0 |
100 | 102 | */ |
101 | 103 | function getQuarterFirstMonth($quarter) |
@@ -116,6 +118,7 @@ discard block |
||
116 | 118 | /** |
117 | 119 | * Get the quarter in Roman letters |
118 | 120 | * @param int Quarter |
121 | + * @param integer $quarter |
|
119 | 122 | * @return string Roman letters |
120 | 123 | */ |
121 | 124 | function getQuarterRoman($quarter) |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | public $conditions; |
49 | 49 | |
50 | 50 | /** |
51 | - * @param Logger $logger |
|
51 | + * @param Monolog\Logger $logger |
|
52 | 52 | * @param array |
53 | 53 | */ |
54 | 54 | public function __construct($logger, $conditions) |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
69 | - * @return mixed |
|
69 | + * @return boolean |
|
70 | 70 | */ |
71 | 71 | public function getDumpValues() |
72 | 72 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * @param string $author |
267 | 267 | * @param string $filename |
268 | 268 | * @param int $filesize |
269 | - * @param array $recipient_ids |
|
269 | + * @param unknown_type|null $recipient_ids |
|
270 | 270 | */ |
271 | 271 | public function _createNewSentWork($uploader_id, $title, $description, $author, $filename, $filesize, $recipient_ids) |
272 | 272 | { |
@@ -584,6 +584,7 @@ discard block |
||
584 | 584 | |
585 | 585 | /** |
586 | 586 | * Deletes all the received categories and work of this person |
587 | + * @param integer $id |
|
587 | 588 | */ |
588 | 589 | function deleteReceivedWorkFolder($id) |
589 | 590 | { |
@@ -186,6 +186,7 @@ discard block |
||
186 | 186 | * Reads answer information from the data base ordered by parameter |
187 | 187 | * @param string Field we want to order by |
188 | 188 | * @param string DESC or ASC |
189 | + * @param string $field |
|
189 | 190 | * @author Frederic Vauthier |
190 | 191 | */ |
191 | 192 | public function readOrderedBy($field, $order='ASC') |
@@ -300,6 +301,7 @@ discard block |
||
300 | 301 | * returns the question ID of the destination question |
301 | 302 | * |
302 | 303 | * @author Julio Montoya |
304 | + * @param integer $id |
|
303 | 305 | * @return integer - the question ID |
304 | 306 | */ |
305 | 307 | public function selectDestination($id) |
@@ -321,6 +323,7 @@ discard block |
||
321 | 323 | |
322 | 324 | /** |
323 | 325 | * return array answer by id else return a bool |
326 | + * @param integer $auto_id |
|
324 | 327 | */ |
325 | 328 | public function selectAnswerByAutoId($auto_id) |
326 | 329 | { |
@@ -435,6 +438,7 @@ discard block |
||
435 | 438 | * |
436 | 439 | * @author Olivier Brouckaert |
437 | 440 | * @param - integer $id - answer ID |
441 | + * @param integer $id |
|
438 | 442 | * @return integer - 0 if bad answer, not 0 if good answer |
439 | 443 | */ |
440 | 444 | public function isCorrect($id) |
@@ -447,6 +451,7 @@ discard block |
||
447 | 451 | * |
448 | 452 | * @author Olivier Brouckaert |
449 | 453 | * @param - integer $id - answer ID |
454 | + * @param integer $id |
|
450 | 455 | * @return string - answer comment |
451 | 456 | */ |
452 | 457 | public function selectComment($id) |
@@ -459,6 +464,7 @@ discard block |
||
459 | 464 | * |
460 | 465 | * @author Olivier Brouckaert |
461 | 466 | * @param - integer $id - answer ID |
467 | + * @param integer $id |
|
462 | 468 | * @return integer - answer weighting |
463 | 469 | */ |
464 | 470 | public function selectWeighting($id) |
@@ -483,6 +489,7 @@ discard block |
||
483 | 489 | * |
484 | 490 | * @author Olivier Brouckaert |
485 | 491 | * @param integer Answer ID |
492 | + * @param integer $id |
|
486 | 493 | * @return integer Answer position |
487 | 494 | */ |
488 | 495 | public function selectHotspotCoordinates($id) |
@@ -495,6 +502,7 @@ discard block |
||
495 | 502 | * |
496 | 503 | * @author Toon Keppens |
497 | 504 | * @param integer Answer ID |
505 | + * @param integer $id |
|
498 | 506 | * @return integer Answer position |
499 | 507 | */ |
500 | 508 | public function selectHotspotType($id) |
@@ -550,6 +558,7 @@ discard block |
||
550 | 558 | * @param string $destination |
551 | 559 | * @param string $hotspot_coordinates |
552 | 560 | * @param string $hotspot_type |
561 | + * @param integer $autoId |
|
553 | 562 | */ |
554 | 563 | public function updateAnswers( |
555 | 564 | $autoId, |
@@ -720,6 +729,7 @@ discard block |
||
720 | 729 | * @author Olivier Brouckaert |
721 | 730 | * @param int question id |
722 | 731 | * @param array destination course info (result of the function api_get_course_info() ) |
732 | + * @param string $newQuestionId |
|
723 | 733 | */ |
724 | 734 | public function duplicate($newQuestionId, $course_info = null) |
725 | 735 | { |