@@ -785,7 +785,6 @@ |
||
785 | 785 | * lock = the user can no longer use this account |
786 | 786 | * @author Patrick Cool <[email protected]>, Ghent University |
787 | 787 | * @param int $active the current state of the account |
788 | - * @param int $user_id The user id |
|
789 | 788 | * @param string $url_params |
790 | 789 | * @return string Some HTML-code with the lock/unlock button |
791 | 790 | */ |
@@ -735,7 +735,6 @@ |
||
735 | 735 | * lock = the user can no longer use this account |
736 | 736 | * @author Patrick Cool <[email protected]>, Ghent University |
737 | 737 | * @param int $active the current state of the account |
738 | - * @param int $user_id The user id |
|
739 | 738 | * @param string $urlParams |
740 | 739 | * |
741 | 740 | * @return string Some HTML-code with the lock/unlock button |
@@ -17,6 +17,9 @@ |
||
17 | 17 | define('WS_ERROR_INVALID_INPUT', 3); |
18 | 18 | define('WS_ERROR_SETTING', 4); |
19 | 19 | |
20 | +/** |
|
21 | + * @param integer $code |
|
22 | + */ |
|
20 | 23 | function return_error($code) { |
21 | 24 | $fault = null; |
22 | 25 | switch ($code) { |
@@ -1,9 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | |
4 | -use Chamilo\CoreBundle\Entity\ExtraField as EntityExtraField; |
|
5 | -use Chamilo\UserBundle\Entity\User; |
|
6 | - |
|
7 | 4 | /** |
8 | 5 | * @package chamilo.webservices |
9 | 6 | */ |
@@ -84,7 +84,7 @@ |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * @param $directoryPath |
|
87 | + * @param string $directoryPath |
|
88 | 88 | * @return bool |
89 | 89 | */ |
90 | 90 | function deleteDirectory($directoryPath) |
@@ -32,6 +32,8 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @param int Error code |
34 | 34 | * @param string Error message |
35 | + * @param integer $code |
|
36 | + * @param string $message |
|
35 | 37 | */ |
36 | 38 | public function __construct($code, $message) { |
37 | 39 | $this->code = $code; |
@@ -42,6 +44,7 @@ discard block |
||
42 | 44 | * Sets the error handler |
43 | 45 | * |
44 | 46 | * @param WSErrorHandler Error handler |
47 | + * @param WSCMSoapErrorHandler $handler |
|
45 | 48 | */ |
46 | 49 | public static function setErrorHandler($handler) { |
47 | 50 | if($handler instanceof WSErrorHandler) { |
@@ -76,6 +79,7 @@ discard block |
||
76 | 79 | * Handle method |
77 | 80 | * |
78 | 81 | * @param WSError Error |
82 | + * @return void |
|
79 | 83 | */ |
80 | 84 | public function handle($error); |
81 | 85 | } |
@@ -102,7 +106,7 @@ discard block |
||
102 | 106 | * Verifies the API key |
103 | 107 | * |
104 | 108 | * @param string Secret key |
105 | - * @return mixed WSError in case of failure, null in case of success |
|
109 | + * @return WSCMError|null WSError in case of failure, null in case of success |
|
106 | 110 | */ |
107 | 111 | protected function verifyKey($secret_key) { |
108 | 112 | $ip = trim($_SERVER['REMOTE_ADDR']); |
@@ -342,6 +342,7 @@ |
||
342 | 342 | * @param string User id value |
343 | 343 | * @param int Set to 1 to subscribe, 0 to unsubscribe |
344 | 344 | * @param int Status (STUDENT or TEACHER) Used for subscription only |
345 | + * @param integer $state |
|
345 | 346 | * @return mixed True if subscription or unsubscription was successful, false otherwise |
346 | 347 | */ |
347 | 348 | protected function changeUserSubscription($course_id_field_name, $course_id_value, $user_id_field_name, $user_id_value, $state, $status = STUDENT) { |
@@ -204,6 +204,9 @@ |
||
204 | 204 | |
205 | 205 | } |
206 | 206 | |
207 | + /** |
|
208 | + * @param integer $user_id |
|
209 | + */ |
|
207 | 210 | protected function set_message_as_read($user_id, $message_id){ |
208 | 211 | $table_message = Database::get_main_table(TABLE_MESSAGE); |
209 | 212 | $query = "UPDATE $table_message SET msg_status = '".MESSAGE_STATUS_NEW."' WHERE user_receiver_id=".$user_id." AND id='".$message_id."';"; |
@@ -137,7 +137,7 @@ |
||
137 | 137 | /** |
138 | 138 | * Get a list of users of which the given conditions match with a LIKE '%cond%' |
139 | 139 | * @param array $conditions a list of condition (exemple : status=>STUDENT) |
140 | - * @param array $order_by a list of fields on which sort |
|
140 | + * @param string[] $order_by a list of fields on which sort |
|
141 | 141 | * @return array An array with all users of the platform. |
142 | 142 | * @todo optional course code parameter, optional sorting parameters... |
143 | 143 | *@todo Use the UserManager class |
@@ -20,6 +20,9 @@ |
||
20 | 20 | |
21 | 21 | define('WS_ERROR_SECRET_KEY', 1); |
22 | 22 | |
23 | +/** |
|
24 | + * @param integer $code |
|
25 | + */ |
|
23 | 26 | function return_error($code) { |
24 | 27 | $fault = null; |
25 | 28 | switch ($code) { |