| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public static function all($columns = ['*']) |
||
| 35 | { |
||
| 36 | $cacheName = 'activerecord.profilefield.all.' . implode('.', $columns); |
||
| 37 | $records = MemoryObject::instance()->get($cacheName); |
||
| 38 | if ($records === null) { |
||
| 39 | $records = parent::all($columns); |
||
| 40 | MemoryObject::instance()->set($cacheName, $records); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $records; |
||
| 44 | } |
||
| 80 |