Total Complexity | 2 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
22 | class SitemapController extends Controller |
||
23 | { |
||
24 | // Public Properties |
||
25 | // ========================================================================= |
||
26 | |||
27 | /** |
||
28 | * @var null|string The handle of the section to generate a sitemap for |
||
29 | */ |
||
30 | public $handle; |
||
31 | |||
32 | /** |
||
33 | * @var null|int The siteId to generate a sitemap for |
||
34 | */ |
||
35 | public $siteId; |
||
36 | |||
37 | // Protected Properties |
||
38 | // ========================================================================= |
||
39 | |||
40 | /** |
||
41 | * @var bool|array |
||
42 | */ |
||
43 | protected $allowAnonymous = [ |
||
44 | ]; |
||
45 | |||
46 | // Public Methods |
||
47 | // ========================================================================= |
||
48 | |||
49 | /** |
||
50 | * @param string $actionID |
||
51 | * |
||
52 | * @return array|string[] |
||
53 | */ |
||
54 | public function options($actionID): array |
||
55 | { |
||
56 | return [ |
||
57 | 'handle', |
||
58 | 'siteId', |
||
59 | ]; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Generate a sitemap. You can pass in a --handle and/or a --siteId |
||
64 | */ |
||
65 | public function actionGenerate() |
||
68 | } |
||
69 | |||
73 |