@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * Set title |
89 | 89 | * |
90 | 90 | * @param string $title |
91 | - * @return CAnnouncement |
|
91 | + * @return Announcement |
|
92 | 92 | */ |
93 | 93 | public function setTitle($title) |
94 | 94 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * Set content |
112 | 112 | * |
113 | 113 | * @param string $content |
114 | - * @return CAnnouncement |
|
114 | + * @return Announcement |
|
115 | 115 | */ |
116 | 116 | public function setContent($content) |
117 | 117 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * Set endDate |
135 | 135 | * |
136 | 136 | * @param \DateTime $endDate |
137 | - * @return CAnnouncement |
|
137 | + * @return Announcement |
|
138 | 138 | */ |
139 | 139 | public function setEndDate($endDate) |
140 | 140 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * Set displayOrder |
158 | 158 | * |
159 | 159 | * @param integer $displayOrder |
160 | - * @return CAnnouncement |
|
160 | + * @return Announcement |
|
161 | 161 | */ |
162 | 162 | public function setDisplayOrder($displayOrder) |
163 | 163 | { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * Set emailSent |
181 | 181 | * |
182 | 182 | * @param boolean $emailSent |
183 | - * @return CAnnouncement |
|
183 | + * @return Announcement |
|
184 | 184 | */ |
185 | 185 | public function setEmailSent($emailSent) |
186 | 186 | { |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | * Set sessionId |
204 | 204 | * |
205 | 205 | * @param integer $sessionId |
206 | - * @return CAnnouncement |
|
206 | + * @return Announcement |
|
207 | 207 | */ |
208 | 208 | public function setSessionId($sessionId) |
209 | 209 | { |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | * Set id |
227 | 227 | * |
228 | 228 | * @param integer $id |
229 | - * @return CAnnouncement |
|
229 | + * @return Announcement |
|
230 | 230 | */ |
231 | 231 | public function setId($id) |
232 | 232 | { |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | * Set cId |
250 | 250 | * |
251 | 251 | * @param integer $cId |
252 | - * @return CAnnouncement |
|
252 | + * @return Announcement |
|
253 | 253 | */ |
254 | 254 | public function setCId($cId) |
255 | 255 | { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | /** |
60 | 60 | * @param string $headline |
61 | - * @return CategoryTranslation |
|
61 | + * @return QuestionTranslation |
|
62 | 62 | */ |
63 | 63 | public function setHeadline($headline) |
64 | 64 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * @param string $body |
80 | - * @return CategoryTranslation |
|
80 | + * @return QuestionTranslation |
|
81 | 81 | */ |
82 | 82 | public function setBody($body) |
83 | 83 | { |
@@ -20,29 +20,29 @@ discard block |
||
20 | 20 | public function getIdentifier(); |
21 | 21 | |
22 | 22 | /** |
23 | - * @return mixed |
|
23 | + * @return string |
|
24 | 24 | */ |
25 | 25 | public function getLabel(); |
26 | 26 | |
27 | 27 | /** |
28 | - * @return mixed |
|
28 | + * @return string |
|
29 | 29 | */ |
30 | 30 | public function getRoute(); |
31 | 31 | |
32 | 32 | /** |
33 | - * @return mixed |
|
33 | + * @return boolean |
|
34 | 34 | */ |
35 | 35 | public function isActive(); |
36 | 36 | |
37 | 37 | /** |
38 | - * @param $isActive |
|
38 | + * @param boolean $isActive |
|
39 | 39 | * |
40 | - * @return mixed |
|
40 | + * @return MenuItemModel |
|
41 | 41 | */ |
42 | 42 | public function setIsActive($isActive); |
43 | 43 | |
44 | 44 | /** |
45 | - * @return mixed |
|
45 | + * @return boolean |
|
46 | 46 | */ |
47 | 47 | public function hasChildren(); |
48 | 48 | |
@@ -54,14 +54,14 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * @param MenuItemInterface $child |
56 | 56 | * |
57 | - * @return mixed |
|
57 | + * @return MenuItemModel |
|
58 | 58 | */ |
59 | 59 | public function addChild(MenuItemInterface $child); |
60 | 60 | |
61 | 61 | /** |
62 | 62 | * @param MenuItemInterface $child |
63 | 63 | * |
64 | - * @return mixed |
|
64 | + * @return MenuItemModel |
|
65 | 65 | */ |
66 | 66 | public function removeChild(MenuItemInterface $child); |
67 | 67 | |
@@ -76,24 +76,24 @@ discard block |
||
76 | 76 | public function getBadge(); |
77 | 77 | |
78 | 78 | /** |
79 | - * @return mixed |
|
79 | + * @return string |
|
80 | 80 | */ |
81 | 81 | public function getBadgeColor(); |
82 | 82 | |
83 | 83 | /** |
84 | - * @return mixed |
|
84 | + * @return MenuItemInterface |
|
85 | 85 | */ |
86 | 86 | public function getParent(); |
87 | 87 | |
88 | 88 | /** |
89 | - * @return mixed |
|
89 | + * @return boolean |
|
90 | 90 | */ |
91 | 91 | public function hasParent(); |
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @param MenuItemInterface $parent |
95 | 95 | * |
96 | - * @return mixed |
|
96 | + * @return MenuItemModel |
|
97 | 97 | */ |
98 | 98 | public function setParent(MenuItemInterface $parent = null); |
99 | 99 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * |
19 | 19 | * @param string $token |
20 | 20 | * |
21 | - * @return UserInterface |
|
21 | + * @return \FOS\UserBundle\Model\UserInterface |
|
22 | 22 | */ |
23 | 23 | public function findUserByConfirmationToken($token) |
24 | 24 | { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | require_once api_get_path(SYS_PATH) . 'main/auth/external_login/functions.inc.php'; |
11 | 11 | |
12 | 12 | /** |
13 | - * @return true if cas is configured |
|
13 | + * @return boolean if cas is configured |
|
14 | 14 | * |
15 | 15 | **/ |
16 | 16 | function cas_configured() |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | /** |
524 | 524 | * Logs a string in debug mode. |
525 | 525 | * |
526 | - * @param $str the string to write |
|
526 | + * @param string $str the string to write |
|
527 | 527 | * |
528 | 528 | * @private |
529 | 529 | */ |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | * This method is used by interface methods to print an error and where the function |
546 | 546 | * was originally called from. |
547 | 547 | * |
548 | - * @param $msg the message to print |
|
548 | + * @param string $msg the message to print |
|
549 | 549 | * |
550 | 550 | * @private |
551 | 551 | */ |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | /** |
679 | 679 | * This method returns the phpCAS version. |
680 | 680 | * |
681 | - * @return the phpCAS version. |
|
681 | + * @return string phpCAS version. |
|
682 | 682 | */ |
683 | 683 | function getVersion() |
684 | 684 | { |
@@ -1105,7 +1105,7 @@ discard block |
||
1105 | 1105 | * @warning should not be called only after phpCAS::forceAuthentication() |
1106 | 1106 | * or phpCAS::checkAuthentication(). |
1107 | 1107 | * |
1108 | - * @return the login name of the authenticated user |
|
1108 | + * @return string login name of the authenticated user |
|
1109 | 1109 | */ |
1110 | 1110 | function getUser() |
1111 | 1111 | { |
@@ -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) |
@@ -991,7 +991,7 @@ discard block |
||
991 | 991 | /** |
992 | 992 | * Get pictureUri |
993 | 993 | * |
994 | - * @return Media |
|
994 | + * @return string |
|
995 | 995 | */ |
996 | 996 | public function getPictureUri() |
997 | 997 | { |
@@ -1368,7 +1368,7 @@ discard block |
||
1368 | 1368 | } |
1369 | 1369 | |
1370 | 1370 | /** |
1371 | - * @return Media |
|
1371 | + * @return string |
|
1372 | 1372 | */ |
1373 | 1373 | public function getAvatar() |
1374 | 1374 | { |
@@ -1637,7 +1637,7 @@ discard block |
||
1637 | 1637 | /** |
1638 | 1638 | * Returns the creation date. |
1639 | 1639 | * |
1640 | - * @return \DateTime|null |
|
1640 | + * @return \DateTime |
|
1641 | 1641 | */ |
1642 | 1642 | public function getCreatedAt() |
1643 | 1643 | { |
@@ -1661,7 +1661,7 @@ discard block |
||
1661 | 1661 | /** |
1662 | 1662 | * Returns the last update date. |
1663 | 1663 | * |
1664 | - * @return \DateTime|null |
|
1664 | + * @return \DateTime |
|
1665 | 1665 | */ |
1666 | 1666 | public function getUpdatedAt() |
1667 | 1667 | { |
@@ -1671,7 +1671,7 @@ discard block |
||
1671 | 1671 | /** |
1672 | 1672 | * Returns the expiration date. |
1673 | 1673 | * |
1674 | - * @return \DateTime|null |
|
1674 | + * @return \DateTime |
|
1675 | 1675 | */ |
1676 | 1676 | public function getExpiresAt() |
1677 | 1677 | { |
@@ -2137,7 +2137,7 @@ discard block |
||
2137 | 2137 | /** |
2138 | 2138 | * Returns the user roles |
2139 | 2139 | * |
2140 | - * @return array The roles |
|
2140 | + * @return string[] The roles |
|
2141 | 2141 | */ |
2142 | 2142 | public function getRoles() |
2143 | 2143 | { |
@@ -2463,7 +2463,7 @@ discard block |
||
2463 | 2463 | /** |
2464 | 2464 | * Check if the user has the skill |
2465 | 2465 | * @param \Chamilo\CoreBundle\Entity\Skill $skill The skill |
2466 | - * @return boolean |
|
2466 | + * @return boolean|null |
|
2467 | 2467 | */ |
2468 | 2468 | public function hasSkill(\Chamilo\CoreBundle\Entity\Skill $skill) |
2469 | 2469 | { |
@@ -1336,7 +1336,7 @@ discard block |
||
1336 | 1336 | * @param string $description |
1337 | 1337 | * @param int $showDescription |
1338 | 1338 | * @param int $duration |
1339 | - * @param array $extraFields |
|
1339 | + * @param boolean|null $extraFields |
|
1340 | 1340 | * @param int $sessionAdminId |
1341 | 1341 | * @param boolean $sendSubscriptionNotification Optional. |
1342 | 1342 | * Whether send a mail notification to users being subscribed |
@@ -1565,7 +1565,7 @@ discard block |
||
1565 | 1565 | * @param array $user_list |
1566 | 1566 | * @param int $session_visibility |
1567 | 1567 | * @param bool $empty_users |
1568 | - * @return bool |
|
1568 | + * @return false|null |
|
1569 | 1569 | */ |
1570 | 1570 | public static function suscribe_users_to_session( |
1571 | 1571 | $id_session, |
@@ -1837,7 +1837,7 @@ discard block |
||
1837 | 1837 | * @param array $courseInfo |
1838 | 1838 | * @param int $status |
1839 | 1839 | * @param bool $updateTotal |
1840 | - * @return bool |
|
1840 | + * @return false|null |
|
1841 | 1841 | */ |
1842 | 1842 | public static function removeUsersFromCourseSession( |
1843 | 1843 | $userList, |
@@ -1903,7 +1903,7 @@ discard block |
||
1903 | 1903 | * @param string $course_code |
1904 | 1904 | * @param int $session_visibility |
1905 | 1905 | * @param bool $removeUsersNotInList |
1906 | - * @return bool |
|
1906 | + * @return false|null |
|
1907 | 1907 | */ |
1908 | 1908 | public static function subscribe_users_to_session_course( |
1909 | 1909 | $user_list, |
@@ -2086,7 +2086,7 @@ discard block |
||
2086 | 2086 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
2087 | 2087 | * existing courses and users (true, default) or not (false) |
2088 | 2088 | * @param $copyEvaluation from base course to session course |
2089 | - * @return void Nothing, or false on error |
|
2089 | + * @return false|null Nothing, or false on error |
|
2090 | 2090 | * */ |
2091 | 2091 | public static function add_courses_to_session( |
2092 | 2092 | $sessionId, |
@@ -2282,6 +2282,8 @@ discard block |
||
2282 | 2282 | * |
2283 | 2283 | * @param int Session id |
2284 | 2284 | * @param int Course id |
2285 | + * @param integer $session_id |
|
2286 | + * @param integer $course_id |
|
2285 | 2287 | * @return bool True in case of success, false otherwise |
2286 | 2288 | */ |
2287 | 2289 | public static function unsubscribe_course_from_session($session_id, $course_id) |
@@ -2337,7 +2339,7 @@ discard block |
||
2337 | 2339 | * @param string $variable Field's internal variable name |
2338 | 2340 | * @param int $fieldType Field's type |
2339 | 2341 | * @param string $displayText Field's language var name |
2340 | - * @return int new extra field id |
|
2342 | + * @return boolean new extra field id |
|
2341 | 2343 | */ |
2342 | 2344 | public static function create_session_extra_field($variable, $fieldType, $displayText) |
2343 | 2345 | { |
@@ -2561,7 +2563,7 @@ discard block |
||
2561 | 2563 | * @param array id_checked |
2562 | 2564 | * @param bool include delete session |
2563 | 2565 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
2564 | - * @return void Nothing, or false on error |
|
2566 | + * @return boolean Nothing, or false on error |
|
2565 | 2567 | * The parameters is a array to delete sessions |
2566 | 2568 | * */ |
2567 | 2569 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3056,6 +3058,7 @@ discard block |
||
3056 | 3058 | * @param string $orderCondition |
3057 | 3059 | * @param string $keyword |
3058 | 3060 | * @param string $description |
3061 | + * @param integer $status |
|
3059 | 3062 | * @return array sessions |
3060 | 3063 | */ |
3061 | 3064 | public static function getSessionsFollowedByUser( |
@@ -3268,8 +3271,8 @@ discard block |
||
3268 | 3271 | /** |
3269 | 3272 | * Gets the list of courses by session filtered by access_url |
3270 | 3273 | * |
3271 | - * @param $userId |
|
3272 | - * @param $sessionId |
|
3274 | + * @param integer $userId |
|
3275 | + * @param null|integer $sessionId |
|
3273 | 3276 | * @param null $from |
3274 | 3277 | * @param null $limit |
3275 | 3278 | * @param null $column |
@@ -3394,6 +3397,7 @@ discard block |
||
3394 | 3397 | /** |
3395 | 3398 | * Gets the count of courses by session filtered by access_url |
3396 | 3399 | * @param int session id |
3400 | + * @param integer $session_id |
|
3397 | 3401 | * @return array list of courses |
3398 | 3402 | */ |
3399 | 3403 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -3645,6 +3649,7 @@ discard block |
||
3645 | 3649 | * Updates a session status |
3646 | 3650 | * @param int session id |
3647 | 3651 | * @param int status |
3652 | + * @param integer $status |
|
3648 | 3653 | */ |
3649 | 3654 | public static function set_session_status($session_id, $status) |
3650 | 3655 | { |
@@ -3960,7 +3965,7 @@ discard block |
||
3960 | 3965 | |
3961 | 3966 | /** |
3962 | 3967 | * @param $id |
3963 | - * @return bool |
|
3968 | + * @return null|boolean |
|
3964 | 3969 | */ |
3965 | 3970 | public static function protect_teacher_session_edit($id) |
3966 | 3971 | { |
@@ -4024,7 +4029,7 @@ discard block |
||
4024 | 4029 | * true: if the session exists it will be updated. |
4025 | 4030 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
4026 | 4031 | * @param int $defaultUserId |
4027 | - * @param mixed $logger |
|
4032 | + * @param Logger $logger |
|
4028 | 4033 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
4029 | 4034 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
4030 | 4035 | * @param string $extraFieldId |
@@ -5266,7 +5271,6 @@ discard block |
||
5266 | 5271 | * @param string $lastConnectionDate |
5267 | 5272 | * @param array $sessionIdList |
5268 | 5273 | * @param array $studentIdList |
5269 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
5270 | 5274 | * |
5271 | 5275 | * @return array|int |
5272 | 5276 | */ |
@@ -5418,7 +5422,7 @@ discard block |
||
5418 | 5422 | /** |
5419 | 5423 | * Get the list of course tools that have to be dealt with in case of |
5420 | 5424 | * registering any course to a session |
5421 | - * @return array The list of tools to be dealt with (literal names) |
|
5425 | + * @return string[] The list of tools to be dealt with (literal names) |
|
5422 | 5426 | */ |
5423 | 5427 | public static function getCourseToolToBeManaged() |
5424 | 5428 | { |
@@ -5432,7 +5436,7 @@ discard block |
||
5432 | 5436 | * Calls the methods bound to each tool when a course is registered into a session |
5433 | 5437 | * @param int $sessionId |
5434 | 5438 | * @param int $courseId |
5435 | - * @return void |
|
5439 | + * @return boolean|null |
|
5436 | 5440 | */ |
5437 | 5441 | public static function installCourse($sessionId, $courseId) |
5438 | 5442 | { |
@@ -6072,6 +6076,7 @@ discard block |
||
6072 | 6076 | * @param int $categoryId The internal ID of the session category |
6073 | 6077 | * @param string $target Value to search for in the session field values |
6074 | 6078 | * @param array $extraFields A list of fields to be scanned and returned |
6079 | + * @param DateTime $publicationDate |
|
6075 | 6080 | * @return mixed |
6076 | 6081 | */ |
6077 | 6082 | public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null) |
@@ -6584,6 +6589,8 @@ discard block |
||
6584 | 6589 | * Converts "start date" and "end date" to "From start date to end date" string |
6585 | 6590 | * @param string $startDate |
6586 | 6591 | * @param string $endDate |
6592 | + * @param boolean $showTime |
|
6593 | + * @param boolean $dateHuman |
|
6587 | 6594 | * |
6588 | 6595 | * @return string |
6589 | 6596 | */ |
@@ -7402,7 +7409,7 @@ discard block |
||
7402 | 7409 | /** |
7403 | 7410 | * Get link to the admin page for this session |
7404 | 7411 | * @param int $id Session ID |
7405 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
7412 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
7406 | 7413 | */ |
7407 | 7414 | public static function getAdminPath($id) |
7408 | 7415 | { |
@@ -7419,7 +7426,7 @@ discard block |
||
7419 | 7426 | * If a course is provided, build the link to the course |
7420 | 7427 | * @param int $id Session ID |
7421 | 7428 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
7422 | - * @return mixed URL to the page to use the session, or false on error |
|
7429 | + * @return false|string URL to the page to use the session, or false on error |
|
7423 | 7430 | */ |
7424 | 7431 | public static function getPath($id, $courseId = 0) |
7425 | 7432 | { |
@@ -7517,7 +7524,7 @@ discard block |
||
7517 | 7524 | /** |
7518 | 7525 | * Return true if coach is allowed to access this session |
7519 | 7526 | * @param int $sessionId |
7520 | - * @return bool |
|
7527 | + * @return integer |
|
7521 | 7528 | */ |
7522 | 7529 | public static function isSessionDateOkForCoach($sessionId) |
7523 | 7530 | { |