Conditions | 5 |
Paths | 8 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
31 | public function &__get($property) |
||
32 | { |
||
33 | $get[ $property ] = false; |
||
|
|||
34 | |||
35 | // CodeIgniter property aliasing |
||
36 | if ($property === 'load') { |
||
37 | $property = 'loader'; |
||
38 | } |
||
39 | |||
40 | if (services()->has($property)) { |
||
41 | return services()->get($property); |
||
42 | } elseif (o2system()->__isset($property)) { |
||
43 | return o2system()->__get($property); |
||
44 | } elseif ($property === 'model') { |
||
45 | return models('controller'); |
||
46 | } |
||
47 | |||
48 | return $get[ $property ]; |
||
49 | } |
||
50 | } |