Property | Type | Description | |
---|---|---|---|
$_ci_cached_vars | array | List of cached variables | |
$_ci_classes | array | List of loaded classes | |
$_ci_helper_paths | array | List of paths to load helpers from | |
$_ci_helpers | array | List of loaded helpers | |
$_ci_library_paths | array | List of paths to load libraries from | |
$_ci_model_paths | array | List of paths to load models from | |
$_ci_models | array | List of loaded models | |
$_ci_ob_level | integer | Nesting level of the output buffering mechanism | |
$_ci_varmap | array | List of class name mappings | |
$_ci_view_paths | array | List of paths to load views from |
Method | Description | |
---|---|---|
__construct ( ) : void | Class constructor | |
add_package_path ( string $path, boolean $view_cascade = TRUE ) : object | Add Package Path | |
clear_vars ( ) : CI_Loader | Clear Cached Variables | |
config ( string $file, boolean $use_sections = FALSE, boolean $fail_gracefully = FALSE ) : boolean | Config Loader | |
database ( mixed $params = '', boolean $return = FALSE, boolean $query_builder = NULL ) : object | boolean | Database Loader | |
dbforge ( object $db = NULL, boolean $return = FALSE ) : object | Load the Database Forge Class | |
dbutil ( object $db = NULL, boolean $return = FALSE ) : object | Load the Database Utilities Class | |
driver ( string | string[] $library, array $params = NULL, string $object_name = NULL ) : object | boolean | Driver Loader | |
file ( string $path, boolean $return = FALSE ) : object | string | Generic File Loader | |
get_package_paths ( boolean $include_base = FALSE ) : array | Get Package Paths | |
get_var ( string $key ) : mixed | Get Variable | |
get_vars ( ) : array | Get Variables | |
helper ( string | string[] $helpers = [] ) : object | Helper Loader | |
helpers ( string | string[] $helpers = [] ) : object | Load Helpers | |
initialize ( ) : void | Initializer | |
is_loaded ( string $class ) : string | boolean | Is Loaded | |
language ( string | string[] $files, $lang = '' ) : object | Language Loader | |
library ( string $library, array $params = NULL, string $object_name = NULL ) : object | Library Loader | |
model ( string $model, string $name = '', boolean $db_conn = FALSE ) : object | Model Loader | |
remove_package_path ( string $path = '' ) : object | Remove Package Path | |
vars ( array | object | string $vars, string $val = '' ) : object | Set Variables | |
view ( string $view, array $vars = [], boolean $return = FALSE ) : object | string | View Loader |
Method | Description | |
---|---|---|
_ci_autoloader ( ) : void | CI Autoloader | |
_ci_get_component ( string $component ) : boolean | CI Component getter | |
_ci_init_library ( string $class, string $prefix, array | null | boolean $config = FALSE, string $object_name = NULL ) : void | Internal CI Library Instantiator | |
_ci_load ( array $_ci_data ) : object | Internal CI Data Loader | |
_ci_load_library ( string $class, mixed $params = NULL, string $object_name = NULL ) : void | Internal CI Library Loader | |
_ci_load_stock_library ( string $library_name, string $file_path, mixed $params, string $object_name ) : void | Internal CI Stock Library Loader | |
_ci_object_to_array ( object $object ) : array | CI Object to Array translator | |
_ci_prep_filename ( string | string[] $filename, string $extension ) : array | Prep filename |
public __construct ( ) : void | ||
return | void |
protected _ci_autoloader ( ) : void | ||
return | void |
protected _ci_get_component ( string $component ) : boolean | ||
$component | string | Component name |
return | boolean |
protected _ci_init_library ( string $class, string $prefix, array | null | boolean $config = FALSE, string $object_name = NULL ) : void | ||
$class | string | Class name |
$prefix | string | Class name prefix |
$config | array | null | boolean | Optional configuration to pass to the class constructor: FALSE to skip; NULL to search in config paths; array containing configuration data |
$object_name | string | Optional object name to assign to |
return | void |
protected _ci_load_stock_library ( string $library_name, string $file_path, mixed $params, string $object_name ) : void | ||
$library_name | string | Library name to load |
$file_path | string | Path to the library filename, relative to libraries/ |
$params | mixed | Optional parameters to pass to the class constructor |
$object_name | string | Optional object name to assign to |
return | void | modified by ci-phpunit-test |
protected _ci_object_to_array ( object $object ) : array | ||
$object | object | Object data to translate |
return | array |
public clear_vars ( ) : CI_Loader | ||
return | CI_Loader |
public config ( string $file, boolean $use_sections = FALSE, boolean $fail_gracefully = FALSE ) : boolean | ||
$file | string | Configuration file name |
$use_sections | boolean | Whether configuration values should be loaded into their own section |
$fail_gracefully | boolean | Whether to just return FALSE or display an error message |
return | boolean | TRUE if the file was loaded correctly or FALSE on failure |
public database ( mixed $params = '', boolean $return = FALSE, boolean $query_builder = NULL ) : object | boolean | ||
$params | mixed | Database configuration options |
$return | boolean | Whether to return the database object |
$query_builder | boolean | Whether to enable Query Builder (overrides the configuration setting) |
return | object | boolean | Database object if $return is set to TRUE, FALSE on failure, CI_Loader instance in any other case |
public driver ( string | string[] $library, array $params = NULL, string $object_name = NULL ) : object | boolean | ||
$library | string | string[] | Driver name(s) |
$params | array | Optional parameters to pass to the driver |
$object_name | string | An optional object name to assign to |
return | object | boolean | Object or FALSE on failure if $library is a string and $object_name is set. CI_Loader instance otherwise. |
public get_package_paths ( boolean $include_base = FALSE ) : array | ||
$include_base | boolean | Whether to include BASEPATH (default: FALSE) |
return | array |
public remove_package_path ( string $path = '' ) : object | ||
$path | string | Path to remove |
return | object |
protected array $_ci_cached_vars | ||
return | array |
protected array $_ci_helper_paths | ||
return | array |
protected array $_ci_library_paths | ||
return | array |
protected array $_ci_model_paths | ||
return | array |
protected int $_ci_ob_level | ||
return | integer |
protected array $_ci_view_paths | ||
return | array |