summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-06 11:32:30 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-06 11:32:30 +0100
commit9c12b3f0d99b56c65d7b24c52d6b11febf4bf5df (patch)
tree875da385f036d1b0fdf84680c075958e20053b29 /system/core/Loader.php
parent868301a5e10986c87717311432bf867386434ef0 (diff)
Make CI_Loader methods library(), driver(), vars() and language()'s first parameters mandatory and fix a docblock
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 334a5c46e..28b9502fd 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -176,7 +176,7 @@ class CI_Loader {
* @param string $object_name An optional object name to assign to
* @return void
*/
- public function library($library = '', $params = NULL, $object_name = NULL)
+ public function library($library, $params = NULL, $object_name = NULL)
{
if (empty($library))
{
@@ -335,7 +335,7 @@ class CI_Loader {
* Load the Database Utilities Class
*
* @param object $db Database object
- * @param bool $return Whether to return the DB Forge class object or not
+ * @param bool $return Whether to return the DB Utilities class object or not
* @return void|object
*/
public function dbutil($db = NULL, $return = FALSE)
@@ -450,7 +450,7 @@ class CI_Loader {
* @param string $val Value to set, only used if $vars is a string
* @return void
*/
- public function vars($vars = array(), $val = '')
+ public function vars($vars, $val = '')
{
if (is_string($vars))
{
@@ -604,7 +604,7 @@ class CI_Loader {
* @param string Language name
* @return void
*/
- public function language($files = array(), $lang = '')
+ public function language($files, $lang = '')
{
$CI =& get_instance();
@@ -629,7 +629,7 @@ class CI_Loader {
* @param bool $fail_gracefully Whether to just return FALSE or display an error message
* @return bool TRUE if the file was loaded correctly or FALSE on failure
*/
- public function config($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)
+ public function config($file, $use_sections = FALSE, $fail_gracefully = FALSE)
{
$CI =& get_instance();
return $CI->config->load($file, $use_sections, $fail_gracefully);
@@ -649,7 +649,7 @@ class CI_Loader {
* @return void|object|bool Object or FALSE on failure if $library is a string
* and $object_name is set. void otherwise.
*/
- public function driver($library = '', $params = NULL, $object_name = NULL)
+ public function driver($library, $params = NULL, $object_name = NULL)
{
if (is_array($library))
{