Property | Type | Description | |
---|---|---|---|
$locations | |||
$registry | |||
$routes |
Method | Description | |
---|---|---|
autoload ( $class ) | Library base class autoload * | |
file_path ( $module = null, $folder = null, $file = null ) : string | Find the path to a module's file. | |
files ( $module_name = NULL, $module_folder = NULL ) : array | Return an associative array of files within one or more modules. | |
find ( $file, $module, $base ) | Find a file Scans for files located within modules directories. | |
folders ( ) : array | Returns an array of the folders in which modules may be stored. | |
list_modules ( ) : array | Returns a list of all modules in the system. | |
load ( $module ) | Load a module controller * | |
load_file ( $file, $path, $type = 'other', $result = TRUE ) | Load a module file * | |
parse_routes ( $module, $uri ) | Parse module routes * | |
path ( $module = null, $folder = null ) : string | Return the path to the module and its specified folder. | |
run ( $module ) | Run a module controller method Output from module is buffered and returned. |
public static file_path ( $module = null, $folder = null, $file = null ) : string | ||
$module | string The name of the module to find. | |
$folder | string The folder within the module to search for the file (ie. controllers). | |
$file | string The name of the file to search for. | |
return | string | The full path to the file. |
public static files ( $module_name = NULL, $module_folder = NULL ) : array | ||
$module_name | string If not null, will return only files from that module. | |
$module_folder | string If not null, will return only files within that sub-folder of each module (ie 'views'). | |
return | array | An associative array, like:
array(
'module_name' => array(
'folder' => array('file1', 'file2')
)
) |
public static find ( $file, $module, $base ) |
public static list_modules ( ) : array | ||
return | array | A list of all modules in the system. |
public static load_file ( $file, $path, $type = 'other', $result = TRUE ) |
public static parse_routes ( $module, $uri ) |
public static run ( $module ) |