| 1 | <?php |
||
| 3 | class MY_Loader extends CI_Loader { |
||
| 4 | |||
| 5 | 96 | public function __construct() { |
|
| 8 | |||
| 9 | /** |
||
| 10 | * Database Loader extension, to load our version of the caching engine |
||
| 11 | * |
||
| 12 | * @access public |
||
| 13 | * |
||
| 14 | * @param string the DB credentials |
||
| 15 | * @param bool whether to return the DB object |
||
| 16 | * @param bool whether to enable active record (this allows us to override the config setting) |
||
| 17 | * |
||
| 18 | * @return object |
||
| 19 | */ |
||
| 20 | 96 | function database($params = '', $return = FALSE, $active_record = NULL) { |
|
| 31 | } |
||
| 32 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.