| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function loadConfig(array $config) |
||
| 30 | { |
||
| 31 | $this->feed->set_cache_location($config['cache_location']); |
||
| 32 | $this->feed->set_cache_duration($config['cache_life']); |
||
| 33 | $this->feed->enable_cache($config['enable_cache']); |
||
| 34 | $this->feed->set_item_limit($config['item_limit']); |
||
| 35 | $this->feed->strip_htmltags($config['strip_htmltags']); |
||
| 36 | $this->feed->strip_attributes($config['strip_attributes']); |
||
| 37 | $this->feed->force_feed($config['force_feed']); |
||
| 38 | $this->feed->enable_order_by_date($config['order_by_date']); |
||
| 39 | $this->feed->strip_comments($config['strip_comments']); |
||
| 40 | $this->feed->set_timeout($config['set_timeout']); |
||
| 41 | |||
| 42 | return $this->feed; |
||
| 43 | } |
||
| 44 | |||
| 71 |