Свойство | Тип | Описание | |
---|---|---|---|
$class | string | Current class name | |
$config | object | CI_Config class object | |
$default_controller | string | Default controller (and method if specific) | |
$directory | string | Sub-directory that contains the requested controller class | |
$enable_query_strings | boolean | Determines whether to use GET parameters or segment URIs | |
$method | string | Current method name | |
$routes | array | List of routes | |
$translate_uri_dashes | boolean | Determines whether dashes in controller & method segments should be automatically replaced by underscores. |
Метод | Описание | |
---|---|---|
__construct ( array $routing = NULL ) : void | Class constructor | |
fetch_class ( ) : string | Fetch the current class | |
fetch_directory ( ) : string | Fetch directory | |
fetch_method ( ) : string | Fetch the current method | |
set_class ( string $class ) : void | Set class name | |
set_directory ( string $dir, boolean $append = FALSE ) : void | Set directory name | |
set_method ( string $method ) : void | Set method name |
Метод | Описание | |
---|---|---|
_parse_routes ( ) : void | Parse Routes | |
_set_default_controller ( ) : void | Set default controller | |
_set_request ( array $segments = [] ) : void | Set request route | |
_set_routing ( ) : void | Set route mapping | |
_validate_request ( array $segments ) : mixed | Validate request |
public __construct ( array $routing = NULL ) : void | ||
$routing | array | |
Результат | void |
protected _parse_routes ( ) : void | ||
Результат | void |
protected _set_default_controller ( ) : void | ||
Результат | void |
protected _set_request ( array $segments = [] ) : void | ||
$segments | array | URI segments |
Результат | void |
protected _set_routing ( ) : void | ||
Результат | void |
protected _validate_request ( array $segments ) : mixed | ||
$segments | array | URI segments |
Результат | mixed | URI segments |
public fetch_class ( ) : string | ||
Результат | string |
public fetch_directory ( ) : string | ||
Результат | string |
public fetch_method ( ) : string | ||
Результат | string |
public set_method ( string $method ) : void | ||
$method | string | Method name |
Результат | void |
public string $default_controller | ||
Результат | string |
public string $directory | ||
Результат | string |
public bool $enable_query_strings | ||
Результат | boolean |
public bool $translate_uri_dashes | ||
Результат | boolean |