| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function __get($property) |
||
| 39 | { |
||
| 40 | if (! property_exists($this->ci, $property)) { |
||
| 41 | ob_start(); |
||
| 42 | var_dump(debug_backtrace()); |
||
|
|
|||
| 43 | $backtrace = ob_get_clean(); |
||
| 44 | file_put_contents(ROOTPATH . '/tmp/backtrace.log', $backtrace, LOCK_EX); |
||
| 45 | $this->stdio->errln( |
||
| 46 | '<<red>>No such property: ' . $property . ' in CodeIgniter instance<<reset>>' |
||
| 47 | ); |
||
| 48 | $this->stdio->errln('Backtrace was saved in tmp/backtrace.log'); |
||
| 49 | throw new RuntimeException('Property does not exist'); |
||
| 50 | } |
||
| 51 | |||
| 52 | return $this->ci->$property; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |