File: ConfigController.php

package info (click to toggle)
icingaweb2-module-pdfexport 0.10.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,364 kB
  • sloc: php: 9,103; javascript: 60; makefile: 38; xml: 7
file content (30 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

/* Icinga PDF Export | (c) 2019 Icinga GmbH | GPLv2 */

namespace Icinga\Module\Pdfexport\Controllers;

use Icinga\Application\Config;
use Icinga\Module\Pdfexport\Forms\ChromeBinaryForm;
use Icinga\Web\Controller;

class ConfigController extends Controller
{
    public function init()
    {
        $this->assertPermission('config/modules');

        parent::init();
    }

    public function chromeAction()
    {
        $form = (new ChromeBinaryForm())
            ->setIniConfig(Config::module('pdfexport'));

        $form->handleRequest();

        $this->view->tabs = $this->Module()->getConfigTabs()->activate('chrome');
        $this->view->form = $form;
    }
}