@@ -173,7 +173,7 @@ |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param array $file |
176 | - * @return bool|string |
|
176 | + * @return string|false |
|
177 | 177 | */ |
178 | 178 | public static function import_uploaded_file($file) |
179 | 179 | { |
@@ -91,7 +91,7 @@ discard block |
||
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 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * @param string $courseCode |
124 | 124 | * @param bool true if you want to get the elements that exists in the course and |
125 | 125 | * in the session, (session_id = 0 or session_id = X) |
126 | - * @return object The course object structure |
|
126 | + * @return Course The course object structure |
|
127 | 127 | */ |
128 | 128 | public function build( |
129 | 129 | $session_id = 0, |
@@ -84,6 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Create a new CourseRestorer |
87 | + * @param Course $course |
|
87 | 88 | */ |
88 | 89 | public function __construct($course) |
89 | 90 | { |
@@ -132,7 +133,7 @@ discard block |
||
132 | 133 | * @param int $session_id |
133 | 134 | * @param bool $update_course_settings Course settings are going to be restore? |
134 | 135 | * @param bool $respect_base_content |
135 | - * @return bool |
|
136 | + * @return false|null |
|
136 | 137 | */ |
137 | 138 | public function restore( |
138 | 139 | $destination_course_code = '', |
@@ -1084,6 +1085,7 @@ discard block |
||
1084 | 1085 | |
1085 | 1086 | /** |
1086 | 1087 | * Restore a forum-topic |
1088 | + * @param false|string $forum_id |
|
1087 | 1089 | */ |
1088 | 1090 | public function restore_topic($thread_id, $forum_id, $sessionId = 0) |
1089 | 1091 | { |
@@ -1140,6 +1142,7 @@ discard block |
||
1140 | 1142 | /** |
1141 | 1143 | * Restore a forum-post |
1142 | 1144 | * @TODO Restore tree-structure of posts. For example: attachments to posts. |
1145 | + * @param false|string $topic_id |
|
1143 | 1146 | */ |
1144 | 1147 | public function restore_post($id, $topic_id, $forum_id, $sessionId = 0) |
1145 | 1148 | { |
@@ -2231,6 +2234,7 @@ discard block |
||
2231 | 2234 | |
2232 | 2235 | /** |
2233 | 2236 | * Check availability of a survey code |
2237 | + * @param string $survey_code |
|
2234 | 2238 | */ |
2235 | 2239 | public function is_survey_code_available($survey_code) |
2236 | 2240 | { |
@@ -2245,6 +2249,7 @@ discard block |
||
2245 | 2249 | |
2246 | 2250 | /** |
2247 | 2251 | * Restore survey-questions |
2252 | + * @param string $survey_id |
|
2248 | 2253 | */ |
2249 | 2254 | public function restore_survey_question($id, $survey_id) |
2250 | 2255 | { |
@@ -2701,6 +2706,8 @@ discard block |
||
2701 | 2706 | * @param string The path origin |
2702 | 2707 | * @param string The path destination |
2703 | 2708 | * @param boolean Option Overwrite |
2709 | + * @param string $source |
|
2710 | + * @param string $dest |
|
2704 | 2711 | * @return void() |
2705 | 2712 | * @deprecated |
2706 | 2713 | */ |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | /** |
15 | 15 | * Display the form |
16 | - * @param array $hidden_fiels Hidden fields to add to the form. |
|
16 | + * @param array $hidden_fields Hidden fields to add to the form. |
|
17 | 17 | * @param boolean the document array will be serialize. This is used in the course_copy.php file |
18 | 18 | */ |
19 | 19 | static function display_form($course, $hidden_fields = null, $avoid_serialize = false) |
@@ -570,7 +570,7 @@ discard block |
||
570 | 570 | |
571 | 571 | /** |
572 | 572 | * Display the form session export |
573 | - * @param array $hidden_fiels Hidden fields to add to the form. |
|
573 | + * @param array $hidden_fields Hidden fields to add to the form. |
|
574 | 574 | * @param boolean the document array will be serialize. This is used in the course_copy.php file |
575 | 575 | */ |
576 | 576 | public static function display_form_session_export($list_course, $hidden_fields = null, $avoid_serialize = false) |
@@ -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 |