@@ -121,7 +121,7 @@ |
||
121 | 121 | * @param string $file Configuration file name |
122 | 122 | * @param bool $use_sections Whether configuration values should be loaded into their own section |
123 | 123 | * @param bool $fail_gracefully Whether to just return FALSE or display an error message |
124 | - * @return bool TRUE if the file was loaded correctly or FALSE on failure |
|
124 | + * @return boolean|null TRUE if the file was loaded correctly or FALSE on failure |
|
125 | 125 | */ |
126 | 126 | public function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE) |
127 | 127 | { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | * and displays it using the specified template. |
149 | 149 | * |
150 | 150 | * @param string $heading Page heading |
151 | - * @param string|string[] $message Error message |
|
151 | + * @param string $message Error message |
|
152 | 152 | * @param string $template Template name |
153 | 153 | * @param int $status_code (default: 500) |
154 | 154 | * |
@@ -160,7 +160,7 @@ |
||
160 | 160 | * Runs a particular hook |
161 | 161 | * |
162 | 162 | * @param array $data Hook details |
163 | - * @return bool TRUE on success or FALSE on failure |
|
163 | + * @return boolean|null TRUE on success or FALSE on failure |
|
164 | 164 | */ |
165 | 165 | protected function _run_hook($data) |
166 | 166 | { |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | /** |
234 | 234 | * Fetch an item from the GET array |
235 | 235 | * |
236 | - * @param mixed $index Index for item to be fetched from $_GET |
|
236 | + * @param string $index Index for item to be fetched from $_GET |
|
237 | 237 | * @param bool $xss_clean Whether to apply XSS filtering |
238 | 238 | * @return mixed |
239 | 239 | */ |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | /** |
248 | 248 | * Fetch an item from the POST array |
249 | 249 | * |
250 | - * @param mixed $index Index for item to be fetched from $_POST |
|
250 | + * @param string $index Index for item to be fetched from $_POST |
|
251 | 251 | * @param bool $xss_clean Whether to apply XSS filtering |
252 | 252 | * @return mixed |
253 | 253 | */ |
@@ -307,9 +307,9 @@ discard block |
||
307 | 307 | /** |
308 | 308 | * Fetch an item from the SERVER array |
309 | 309 | * |
310 | - * @param mixed $index Index for item to be fetched from $_SERVER |
|
310 | + * @param string $index Index for item to be fetched from $_SERVER |
|
311 | 311 | * @param bool $xss_clean Whether to apply XSS filtering |
312 | - * @return mixed |
|
312 | + * @return string |
|
313 | 313 | */ |
314 | 314 | public function server($index, $xss_clean = NULL) |
315 | 315 | { |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | * Allows read access to protected properties |
878 | 878 | * |
879 | 879 | * @param string $name |
880 | - * @return mixed |
|
880 | + * @return string|null |
|
881 | 881 | */ |
882 | 882 | public function __get($name) |
883 | 883 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * @param string $library Library name |
186 | 186 | * @param array $params Optional parameters to pass to the library class constructor |
187 | 187 | * @param string $object_name An optional object name to assign to |
188 | - * @return object |
|
188 | + * @return CI_Loader |
|
189 | 189 | */ |
190 | 190 | public function library($library, $params = NULL, $object_name = NULL) |
191 | 191 | { |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | * @param string $model Model name |
230 | 230 | * @param string $name An optional object name to assign to |
231 | 231 | * @param bool $db_conn An optional database connection configuration to initialize |
232 | - * @return object |
|
232 | + * @return CI_Loader |
|
233 | 233 | */ |
234 | 234 | public function model($model, $name = '', $db_conn = FALSE) |
235 | 235 | { |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | /** |
330 | 330 | * Database Loader |
331 | 331 | * |
332 | - * @param mixed $params Database configuration options |
|
332 | + * @param string|boolean $params Database configuration options |
|
333 | 333 | * @param bool $return Whether to return the database object |
334 | 334 | * @param bool $query_builder Whether to enable Query Builder |
335 | 335 | * (overrides the configuration setting) |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | * An associative array or object containing values |
486 | 486 | * to be set, or a value's name if string |
487 | 487 | * @param string $val Value to set, only used if $vars is a string |
488 | - * @return object |
|
488 | + * @return CI_Loader |
|
489 | 489 | */ |
490 | 490 | public function vars($vars, $val = '') |
491 | 491 | { |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | * Helper Loader |
558 | 558 | * |
559 | 559 | * @param string|string[] $helpers Helper name(s) |
560 | - * @return object |
|
560 | + * @return CI_Loader |
|
561 | 561 | */ |
562 | 562 | public function helper($helpers = array()) |
563 | 563 | { |
@@ -628,7 +628,7 @@ discard block |
||
628 | 628 | * |
629 | 629 | * @uses CI_Loader::helper() |
630 | 630 | * @param string|string[] $helpers Helper name(s) |
631 | - * @return object |
|
631 | + * @return CI_Loader |
|
632 | 632 | */ |
633 | 633 | public function helpers($helpers = array()) |
634 | 634 | { |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | * |
645 | 645 | * @param string|string[] $files List of language file names to load |
646 | 646 | * @param string Language name |
647 | - * @return object |
|
647 | + * @return CI_Loader |
|
648 | 648 | */ |
649 | 649 | public function language($files, $lang = '') |
650 | 650 | { |
@@ -731,7 +731,7 @@ discard block |
||
731 | 731 | * |
732 | 732 | * @param string $path Path to add |
733 | 733 | * @param bool $view_cascade (default: TRUE) |
734 | - * @return object |
|
734 | + * @return CI_Loader |
|
735 | 735 | */ |
736 | 736 | public function add_package_path($path, $view_cascade = TRUE) |
737 | 737 | { |
@@ -775,7 +775,7 @@ discard block |
||
775 | 775 | * added path will be removed removed. |
776 | 776 | * |
777 | 777 | * @param string $path Path to remove |
778 | - * @return object |
|
778 | + * @return CI_Loader |
|
779 | 779 | */ |
780 | 780 | public function remove_package_path($path = '') |
781 | 781 | { |
@@ -1061,7 +1061,7 @@ discard block |
||
1061 | 1061 | * @used-by CI_Loader::_ci_load_library() |
1062 | 1062 | * @uses CI_Loader::_ci_init_library() |
1063 | 1063 | * |
1064 | - * @param string $library Library name to load |
|
1064 | + * @param string $library_name Library name to load |
|
1065 | 1065 | * @param string $file_path Path to the library filename, relative to libraries/ |
1066 | 1066 | * @param mixed $params Optional parameters to pass to the class constructor |
1067 | 1067 | * @param string $object_name Optional object name to assign to |
@@ -285,7 +285,7 @@ |
||
285 | 285 | /** |
286 | 286 | * Get Header |
287 | 287 | * |
288 | - * @param string $header_name |
|
288 | + * @param string $header |
|
289 | 289 | * @return string |
290 | 290 | */ |
291 | 291 | public function get_header($header) |
@@ -69,6 +69,7 @@ |
||
69 | 69 | * Constructor |
70 | 70 | * |
71 | 71 | * @param object &$db |
72 | + * @param CI_DB_driver $db |
|
72 | 73 | * @return void |
73 | 74 | */ |
74 | 75 | public function __construct(&$db) |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | * |
452 | 452 | * This is just a dummy method that all drivers will override. |
453 | 453 | * |
454 | - * @return mixed |
|
454 | + * @return boolean |
|
455 | 455 | */ |
456 | 456 | public function db_connect() |
457 | 457 | { |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | /** |
464 | 464 | * Persistent database connection |
465 | 465 | * |
466 | - * @return mixed |
|
466 | + * @return boolean |
|
467 | 467 | */ |
468 | 468 | public function db_pconnect() |
469 | 469 | { |
@@ -508,6 +508,7 @@ discard block |
||
508 | 508 | * Set client character set |
509 | 509 | * |
510 | 510 | * @param string |
511 | + * @param string $charset |
|
511 | 512 | * @return bool |
512 | 513 | */ |
513 | 514 | public function db_set_charset($charset) |
@@ -768,6 +769,7 @@ discard block |
||
768 | 769 | * not require all the features of the main query() function. |
769 | 770 | * |
770 | 771 | * @param string the sql query |
772 | + * @param string $sql |
|
771 | 773 | * @return mixed |
772 | 774 | */ |
773 | 775 | public function simple_query($sql) |
@@ -968,6 +970,7 @@ discard block |
||
968 | 970 | * |
969 | 971 | * @param string the sql statement |
970 | 972 | * @param array an array of bind data |
973 | + * @param string $sql |
|
971 | 974 | * @return string |
972 | 975 | */ |
973 | 976 | public function compile_binds($sql, $binds) |
@@ -1032,6 +1035,7 @@ discard block |
||
1032 | 1035 | * Determines if a query is a "write" type. |
1033 | 1036 | * |
1034 | 1037 | * @param string An SQL query string |
1038 | + * @param string $sql |
|
1035 | 1039 | * @return bool |
1036 | 1040 | */ |
1037 | 1041 | public function is_write_type($sql) |
@@ -1168,6 +1172,7 @@ discard block |
||
1168 | 1172 | * Platform-dependant string escape |
1169 | 1173 | * |
1170 | 1174 | * @param string |
1175 | + * @param string $str |
|
1171 | 1176 | * @return string |
1172 | 1177 | */ |
1173 | 1178 | protected function _escape_str($str) |
@@ -1461,6 +1466,7 @@ discard block |
||
1461 | 1466 | * @param string the table name |
1462 | 1467 | * @param array the insert keys |
1463 | 1468 | * @param array the insert values |
1469 | + * @param string $table |
|
1464 | 1470 | * @return string |
1465 | 1471 | */ |
1466 | 1472 | protected function _insert($table, $keys, $values) |
@@ -372,7 +372,7 @@ |
||
372 | 372 | * @param string $table Table name |
373 | 373 | * @param bool $if_not_exists Whether to add 'IF NOT EXISTS' condition |
374 | 374 | * @param array $attributes Associative array of table attributes |
375 | - * @return mixed |
|
375 | + * @return boolean|string |
|
376 | 376 | */ |
377 | 377 | protected function _create_table($table, $if_not_exists, $attributes) |
378 | 378 | { |