Piwik\Plugins\ExampleSettingsPlugin\UserSettings::init PHP Method

init() protected method

protected init ( )
    protected function init()
    {
        // User setting --> checkbox converted to bool
        $this->autoRefresh = $this->createAutoRefreshSetting();
        // User setting --> textbox converted to int defining a validator and filter
        $this->refreshInterval = $this->createRefreshIntervalSetting();
        // User setting --> radio
        $this->color = $this->createColorSetting();
    }