@@ -593,7 +593,6 @@ |
||
593 | 593 | * $options. What does 8 correspond to? |
594 | 594 | * |
595 | 595 | * @param String $path |
596 | - * @param Integer $mode |
|
597 | 596 | * @param Integer $options |
598 | 597 | * @return Boolean |
599 | 598 | * @access public |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | * @see Net_SSH1::interactiveRead() |
733 | 733 | * @see Net_SSH1::interactiveWrite() |
734 | 734 | * @param String $cmd |
735 | - * @return mixed |
|
735 | + * @return boolean|string |
|
736 | 736 | * @access public |
737 | 737 | */ |
738 | 738 | function exec($cmd, $block = true) |
@@ -1245,8 +1245,8 @@ discard block |
||
1245 | 1245 | * |
1246 | 1246 | * @see Net_SSH1::Net_SSH1() |
1247 | 1247 | * @param Math_BigInteger $m |
1248 | - * @param Array $key |
|
1249 | - * @return Math_BigInteger |
|
1248 | + * @param Math_BigInteger[] $key |
|
1249 | + * @return string |
|
1250 | 1250 | * @access private |
1251 | 1251 | */ |
1252 | 1252 | function _rsa_crypt($m, $key) |
@@ -1298,7 +1298,6 @@ discard block |
||
1298 | 1298 | * named constants from it, using the value as the name of the constant and the index as the value of the constant. |
1299 | 1299 | * If any of the constants that would be defined already exists, none of the constants will be defined. |
1300 | 1300 | * |
1301 | - * @param Array $array |
|
1302 | 1301 | * @access private |
1303 | 1302 | */ |
1304 | 1303 | function _define_array() |
@@ -1491,8 +1490,9 @@ discard block |
||
1491 | 1490 | * |
1492 | 1491 | * Makes sure that only the last 1MB worth of packets will be logged |
1493 | 1492 | * |
1494 | - * @param String $data |
|
1495 | 1493 | * @access private |
1494 | + * @param string $protocol_flags |
|
1495 | + * @param string $message |
|
1496 | 1496 | */ |
1497 | 1497 | function _append_log($protocol_flags, $message) |
1498 | 1498 | { |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | * @param String $host |
736 | 736 | * @param optional Integer $port |
737 | 737 | * @param optional Integer $timeout |
738 | - * @return Net_SSH2 |
|
738 | + * @return null|false |
|
739 | 739 | * @access public |
740 | 740 | */ |
741 | 741 | function Net_SSH2($host, $port = 22, $timeout = 10) |
@@ -1588,9 +1588,7 @@ discard block |
||
1588 | 1588 | * The $password parameter can be a plaintext password, a Crypt_RSA object or an array |
1589 | 1589 | * |
1590 | 1590 | * @param String $username |
1591 | - * @param Mixed $password |
|
1592 | - * @param Mixed $... |
|
1593 | - * @return Boolean |
|
1591 | + * @return boolean|null |
|
1594 | 1592 | * @see _login_helper |
1595 | 1593 | * @access public |
1596 | 1594 | */ |
@@ -1614,7 +1612,7 @@ discard block |
||
1614 | 1612 | * |
1615 | 1613 | * @param String $username |
1616 | 1614 | * @param optional String $password |
1617 | - * @return Boolean |
|
1615 | + * @return boolean|null |
|
1618 | 1616 | * @access private |
1619 | 1617 | * @internal It might be worthwhile, at some point, to protect against {@link http://tools.ietf.org/html/rfc4251#section-9.3.9 traffic analysis} |
1620 | 1618 | * by sending dummy SSH_MSG_IGNORE messages. |
@@ -1779,7 +1777,6 @@ discard block |
||
1779 | 1777 | /** |
1780 | 1778 | * Handle the keyboard-interactive requests / responses. |
1781 | 1779 | * |
1782 | - * @param String $responses... |
|
1783 | 1780 | * @return Boolean |
1784 | 1781 | * @access private |
1785 | 1782 | */ |
@@ -1896,7 +1893,6 @@ discard block |
||
1896 | 1893 | * Login with an RSA private key |
1897 | 1894 | * |
1898 | 1895 | * @param String $username |
1899 | - * @param Crypt_RSA $password |
|
1900 | 1896 | * @return Boolean |
1901 | 1897 | * @access private |
1902 | 1898 | * @internal It might be worthwhile, at some point, to protect against {@link http://tools.ietf.org/html/rfc4251#section-9.3.9 traffic analysis} |
@@ -2131,7 +2127,7 @@ discard block |
||
2131 | 2127 | * |
2132 | 2128 | * @see Net_SSH2::read() |
2133 | 2129 | * @see Net_SSH2::write() |
2134 | - * @return Boolean |
|
2130 | + * @return boolean|null |
|
2135 | 2131 | * @access private |
2136 | 2132 | */ |
2137 | 2133 | function _initShell() |
@@ -2427,6 +2423,7 @@ discard block |
||
2427 | 2423 | * Because some binary packets need to be ignored... |
2428 | 2424 | * |
2429 | 2425 | * @see Net_SSH2::_get_binary_packet() |
2426 | + * @param string $payload |
|
2430 | 2427 | * @return String |
2431 | 2428 | * @access private |
2432 | 2429 | */ |
@@ -2556,7 +2553,7 @@ discard block |
||
2556 | 2553 | * |
2557 | 2554 | * Returns the data as a string if it's available and false if not. |
2558 | 2555 | * |
2559 | - * @param $client_channel |
|
2556 | + * @param integer $client_channel |
|
2560 | 2557 | * @return Mixed |
2561 | 2558 | * @access private |
2562 | 2559 | */ |
@@ -2795,8 +2792,9 @@ discard block |
||
2795 | 2792 | * |
2796 | 2793 | * Makes sure that only the last 1MB worth of packets will be logged |
2797 | 2794 | * |
2798 | - * @param String $data |
|
2799 | 2795 | * @access private |
2796 | + * @param string $message_number |
|
2797 | + * @param string $message |
|
2800 | 2798 | */ |
2801 | 2799 | function _append_log($message_number, $message) |
2802 | 2800 | { |
@@ -2894,7 +2892,7 @@ discard block |
||
2894 | 2892 | * for SCP more than anything. |
2895 | 2893 | * |
2896 | 2894 | * @param Integer $client_channel |
2897 | - * @return Boolean |
|
2895 | + * @return boolean|null |
|
2898 | 2896 | * @access private |
2899 | 2897 | */ |
2900 | 2898 | function _close_channel($client_channel) |
@@ -2920,7 +2918,7 @@ discard block |
||
2920 | 2918 | * Disconnect |
2921 | 2919 | * |
2922 | 2920 | * @param Integer $reason |
2923 | - * @return Boolean |
|
2921 | + * @return false|null |
|
2924 | 2922 | * @access private |
2925 | 2923 | */ |
2926 | 2924 | function _disconnect($reason) |
@@ -2958,7 +2956,6 @@ discard block |
||
2958 | 2956 | * named constants from it, using the value as the name of the constant and the index as the value of the constant. |
2959 | 2957 | * If any of the constants that would be defined already exists, none of the constants will be defined. |
2960 | 2958 | * |
2961 | - * @param Array $array |
|
2962 | 2959 | * @access private |
2963 | 2960 | */ |
2964 | 2961 | function _define_array() |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | /** |
145 | 145 | * Returns the contents of the CSS defined by the plugin |
146 | - * @return array |
|
146 | + * @return string |
|
147 | 147 | */ |
148 | 148 | public function get_css() |
149 | 149 | { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | /** |
163 | 163 | * Returns an HTML form (generated by FormValidator) of the plugin settings |
164 | - * @return string FormValidator-generated form |
|
164 | + * @return FormValidator FormValidator-generated form |
|
165 | 165 | */ |
166 | 166 | public function get_settings_form() |
167 | 167 | { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | * @param boolean $add_tool_link Whether to add a tool link or not |
384 | 384 | * (some tools might just offer a configuration section and act on the backend) |
385 | 385 | * |
386 | - * @return boolean False on error, null otherwise |
|
386 | + * @return boolean|null False on error, null otherwise |
|
387 | 387 | */ |
388 | 388 | public function install_course_fields($courseId, $add_tool_link = true) |
389 | 389 | { |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * tool on the course's homepage |
492 | 492 | * @param int $courseId |
493 | 493 | * |
494 | - * @return void |
|
494 | + * @return false|null |
|
495 | 495 | */ |
496 | 496 | public function uninstall_course_fields($courseId) |
497 | 497 | { |
@@ -596,7 +596,7 @@ discard block |
||
596 | 596 | * @param string $tabName |
597 | 597 | * @param string $url |
598 | 598 | * |
599 | - * @return boolean |
|
599 | + * @return false|string |
|
600 | 600 | */ |
601 | 601 | public function addTab($tabName, $url) |
602 | 602 | { |
@@ -626,7 +626,7 @@ |
||
626 | 626 | |
627 | 627 | /** |
628 | 628 | * Get first SMS plugin name |
629 | - * @return string|boolean |
|
629 | + * @return string|false |
|
630 | 630 | */ |
631 | 631 | public function getSMSPluginName() |
632 | 632 | { |
@@ -126,6 +126,7 @@ discard block |
||
126 | 126 | * Returns a temporary url to download files and/or folders. |
127 | 127 | * |
128 | 128 | * @param string|array $ids |
129 | + * @param string $tool |
|
129 | 130 | * @return string |
130 | 131 | */ |
131 | 132 | public static function download_url($ids, $tool) |
@@ -293,7 +294,7 @@ discard block |
||
293 | 294 | /** |
294 | 295 | * The name of the porfolio where to send. |
295 | 296 | * |
296 | - * @return type |
|
297 | + * @return string |
|
297 | 298 | */ |
298 | 299 | function get_portfolio() |
299 | 300 | { |
@@ -391,7 +392,6 @@ discard block |
||
391 | 392 | * Create a "send to portfolio" button |
392 | 393 | * |
393 | 394 | * @param string $tool The name of the tool: document, work. |
394 | - * @param int $c_id The id of the course |
|
395 | 395 | * @param int $id The id of the object |
396 | 396 | * @param array $attributes Html attributes |
397 | 397 | * @return \PortfolioShare |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | /** |
406 | 406 | * Returns the current secuirty token. Used to avoid see surfing attacks. |
407 | 407 | * |
408 | - * @return type |
|
408 | + * @return string |
|
409 | 409 | */ |
410 | 410 | static function security_token() |
411 | 411 | { |
@@ -420,6 +420,10 @@ discard block |
||
420 | 420 | protected $attributes = array(); |
421 | 421 | protected $tool = ''; |
422 | 422 | |
423 | + /** |
|
424 | + * @param string $tool |
|
425 | + * @param integer $id |
|
426 | + */ |
|
423 | 427 | function __construct($tool, $id, $attributes = array()) |
424 | 428 | { |
425 | 429 | $this->tool = $tool; |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | } |
130 | 130 | |
131 | 131 | /** |
132 | - * @return array |
|
132 | + * @return string[] |
|
133 | 133 | */ |
134 | 134 | public function get_status_list() |
135 | 135 | { |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | /** |
273 | 273 | * @param int $id |
274 | 274 | * |
275 | - * @return bool |
|
275 | + * @return null|false |
|
276 | 276 | */ |
277 | 277 | public function delete($id) |
278 | 278 | { |
@@ -15,6 +15,10 @@ |
||
15 | 15 | |
16 | 16 | // warning the goal of this function is to enforce rights managment in Chamilo |
17 | 17 | // thus default return value is always true |
18 | + |
|
19 | + /** |
|
20 | + * @param string $handler |
|
21 | + */ |
|
18 | 22 | public static function hasRight($handler) { |
19 | 23 | if (array_key_exists($handler, self::$rights_cache)) |
20 | 24 | return self::$rights_cache[$handler]; |
@@ -71,6 +71,10 @@ |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Get the terms stored at database |
74 | + * @param string $prefix |
|
75 | + * @param string $course_code |
|
76 | + * @param string $tool_id |
|
77 | + * @param integer $ref_id |
|
74 | 78 | * @return array Array of terms |
75 | 79 | */ |
76 | 80 | function get_terms_on_db($prefix, $course_code, $tool_id, $ref_id) { |