| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class XMLGoogleShoppingFeedController extends GoogleShoppingFeedController |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | private static $allowed_actions = [ |
||
| 22 | 'index', |
||
| 23 | ]; |
||
| 24 | |||
| 25 | public function SiteConfig() |
||
| 26 | { |
||
| 27 | return SiteConfig::current_site_config(); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function Items() |
||
| 31 | { |
||
| 32 | $apiClassName = Config::inst()->get(GoogleShoppingFeedController::class, 'api_class'); |
||
| 33 | $apiClass = new $apiClassName(); |
||
| 34 | |||
| 35 | return $apiClass->getArrayList(); |
||
| 36 | } |
||
| 37 | |||
| 38 | protected function getExtension(): string |
||
| 39 | { |
||
| 40 | return 'xml'; |
||
| 41 | } |
||
| 42 | |||
| 43 | protected function getContentType(): string |
||
| 46 | } |
||
| 47 | } |
||
| 48 |