Display settings forms.
@return string
491783
public function index()
    {
        $this->requireAdmin();

        $this->layout->title = Lang::get('settings');

        $this->view->settings = $this->settings;

        $basicSettings = array();
        if (isset($this->settings['phpci']['basic'])) {
            $basicSettings = $this->settings['phpci']['basic'];
        }

        $buildSettings = array();
        if (isset($this->settings['phpci']['build'])) {
            $buildSettings = $this->settings['phpci']['build'];
        }

        $latestBuildsSettings = array();
        if (isset($this->settings['phpci']['latest_builds'])) {
            $latestBuildsSettings = $this->settings['phpci']['latest_builds'];
        }

        $emailSettings = array();
        if (isset($this->settings['phpci']['email_settings'])) {
            $emailSettings = $this->settings['phpci']['email_settings'];
        }

        $authSettings = array();
        if (isset($this->settings['phpci']['authentication_settings'])) {
            $authSettings = $this->settings['phpci']['authentication_settings'];
        }

        $this->view->configFile = PHPCI_CONFIG_FILE;
        $this->view->basicSettings = $this->getBasicForm($basicSettings);
        $this->view->latestBuildsSettings = $this->getLatestBuildsForm($latestBuildsSettings);
        $this->view->buildSettings = $this->getBuildForm($buildSettings);
        $this->view->github = $this->getGithubForm();
        $this->view->emailSettings = $this->getEmailForm($emailSettings);
        $this->view->authenticationSettings = $this->getAuthenticationForm($authSettings);
        $this->view->isWriteable = $this->canWriteConfig();

        if (!empty($this->settings['phpci']['github']['token'])) {
            $this->view->githubUser = $this->getGithubUser($this->settings['phpci']['github']['token']);
        }

        return $this->view->render();
    }
1223410
public function getSettings()
    {
        $settings = [];
        $settings['page'] = $this->getPage();
        $settings['limit'] = $this->getLimit();
        $settings['orders'] = $this->getOrder();
        return $settings;
    }
907653
public function getTextSettings()
    {
        $fields = $this->agenda->getFieldLabels();
        $description = sprintf($this->_(
                "Use the %%-sign to search for zero or more random characters and an _ for a single random character."
                ));

        return array(
            'gaf_filter_text1' => array(
                'label'        => $this->_('Field 1'),
                'multiOptions' => $fields,
                'required'     => true,
                ),
            'gaf_filter_text2' => array(
                'label'        => $this->_('Search text 1'),
                'description'  => $description,
                'required'     => true,
                ),
            'gaf_filter_text3' => array(
                'label'        => $this->_('Field 2'),
                'multiOptions' => $this->util->getTranslated()->getEmptyDropdownArray() + $fields,
                ),
            'gaf_filter_text4' => array(
                'label'       => $this->_('Search text 2'),
                'description' => sprintf($this->_("Required when filled - use %%-sign as well.")),
                ),
            );
    }
1322282
protected function getSettings() {
        if (!$this->_settings) {
            $this->_settings = new SettingsList($this->version);
        }

        return $this->_settings;
    }
715108
private function CreateSettings()
    {
        $this->settings = new Settings();
        $this->settings->SetLogLifetime(90);
        $this->settings->SetChangeRequestLifetime(30);
        $this->settings->SetSmtpSecurity((string)Enums\SmtpSecurity::None());
        $admin = $this->FirstAdmin();
        if ($admin)
        {
            $this->settings->SetMailFromEMail($admin->GetEMail());
            if ($admin->GetFirstName() &&  $admin->GetLastName())
            {
                $this->settings->SetMailFromName($admin->GetFirstName() . ' ' . $admin->GetLastName());
            }
        }
        $this->settings->Save();
    }
1331415
public function get_setting() {
        $result = $this->config_read($this->name);
        if (is_null($result)) {
            return NULL;
        }
        if ($result === '') {
            return array();
        }
        return explode(',', $result);
    }
114472
public function getFormOptions()
    {
        $submit = ($this->SubmitButtonText) ? $this->SubmitButtonText : _t(__CLASS__.'.SUBMITBUTTON', 'Submit');
        $clear = ($this->ClearButtonText) ? $this->ClearButtonText : _t(__CLASS__.'.CLEARBUTTON', 'Clear');

        $options = FieldList::create(
            TextField::create('SubmitButtonText', _t(__CLASS__.'.TEXTONSUBMIT', 'Text on submit button:'), $submit),
            TextField::create('ClearButtonText', _t(__CLASS__.'.TEXTONCLEAR', 'Text on clear button:'), $clear),
            CheckboxField::create('ShowClearButton', _t(__CLASS__.'.SHOWCLEARFORM', 'Show Clear Form Button'), $this->ShowClearButton),
            CheckboxField::create('EnableLiveValidation', _t(__CLASS__.'.ENABLELIVEVALIDATION', 'Enable live validation')),
            CheckboxField::create('DisplayErrorMessagesAtTop', _t(__CLASS__.'.DISPLAYERRORMESSAGESATTOP', 'Display error messages above the form?')),
            CheckboxField::create('DisableCsrfSecurityToken', _t(__CLASS__.'.DISABLECSRFSECURITYTOKEN', 'Disable CSRF Token')),
            CheckboxField::create('DisableAuthenicatedFinishAction', _t(__CLASS__.'.DISABLEAUTHENICATEDFINISHACTION', 'Disable Authentication on finish action'))
        );

        $this->extend('updateFormOptions', $options);

        return $options;
    }
1245410
protected function createComponentSettingsForm(): Form
	{
		$form = $this->formFactory->create();

		$form->addImageUpload('logo', 'webManager.web.settings.logo', 'webManager.web.settings.deleteLogo')
			->setNamespace('front')
			->setPreview('300x100');
		$form->addText('title', 'webManager.web.settings.pagesTitle');
		$form->addTextArea('keywords', 'webManager.web.settings.keywords');
		$form->addTextArea('description', 'webManager.web.settings.description');

		$form->addSubmit('save', 'form.save');

		$form->onSuccess[] = [$this, 'settingsFormSucceeded'];

		return $form;
	}
294127
public static function get_settings() {
		// If the gforms plugin is not active.
		if ( ! class_exists( 'GFWebAPI' ) ) {
			return false;
		}

		$settings = get_option( 'gravityformsaddon_gravityformswebapi_settings' );

		// If the API is not enabled.
		if ( empty( $settings ) || ! $settings['enabled'] ) {
			return false;
		}

		$forms = [];

		$method = 'GET';

		$expires = strtotime( self::SIGNATURE_EXPIRY );

		foreach ( \GFAPI::get_forms() as $form ) {

			$get_form_route = 'forms/' . $form['id'];

			$string_to_sign = sprintf( '%s:%s:%s:%s', $settings['public_key'], $method, $get_form_route, $expires );

			$forms[ $form['id'] ] = [
				'get_form' => [
					'route' => $get_form_route,
					'expires' => $expires,
					'signature' => self::calculate_signature( $string_to_sign, $settings['private_key'] ),
				],
				'post_submission' => [
					'route' => 'forms/' . $form['id'] . '/submissions',
				],
			];
		}

		return [
			'api_base' => GFWEBAPI_API_BASE_URL,
			'api_key' => $settings['public_key'],
			'forms' => $forms,
		];
	}
283955
public function settings()
	{
		$user_id = Config::get('ff-qiwi-shop::user_id');
		$setting = Setting::find($user_id);
		if ($setting == null) {
			return $this->make('setSettings', array('user_id' => $user_id));
		}

		return $this->make('changeSettings', array('setting' => $setting));
	}
1367896
private function getSettings()
    {
        $settingsStorage = $this->getSettingsStorage();
        if (!$settingsStorage->exists(CspHeaderSettingsInterface::CSP_HEADER_SETTING)) {
            return '';
        }

        return $settingsStorage->get(CspHeaderSettingsInterface::CSP_HEADER_SETTING);
    }
97507
public function get_data() {
		$settings = $this->get_settings()[ $this->number ];

		return array_merge(
			[ 'title' => $settings['title'] ],
			Acf::get_widget_field( $this->id )
		);
	}
843940
public function settings()
    {
        $page = Eresus_Kernel::app()->getPage();

        // Данные для подстановки в шаблон
        $data = array();
        $data['this'] = $this;
        $data['page'] = $page;
        $data['logo_exists'] = file_exists($this->dirData . 'logo.png');

        $this->settings['tmplImageList'] = $this->templates()->clientRead('image-list.html');
        $this->settings['tmplImageGroupedList'] =
            $this->templates()->clientRead('image-grouped-list.html');
        $this->settings['tmplImage'] = $this->templates()->clientRead('image.html');
        $this->settings['tmplPopup'] = $this->templates()->clientRead('popup.html');

        // Создаём экземпляр шаблона
        $form = new EresusForm($this->templates()->adminPath('settings.html', false));
        foreach ($data as $key => $value)
        {
            $form->setValue($key, $value);
        }

        // Компилируем шаблон и данные
        $html = $form->compile();

        return $html;
    }
918221
protected function generateSettings()
    {
        $settings = new LoginProviderSettings();
        $settings->identityColumnName = $this->usernameColumnName;
        $settings->lockoutAccountAfterFailedLoginAttempts = true;
        $settings->numberOfFailedLoginAttemptsBeforeLockout = 3;
        $settings->numberOfPreviousPasswords = 3;
        $settings->totalPreviousPasswordsToStore = 5;
        $settings->totalMinutesToLockUserAccount = 10;

        return $settings;
    }
1308327
public function renderSettings()
    {

        $result = View::render_view( 'base/ilab-settings.php', [
            'title'=>$this->toolInfo['settings']['title'],
            'group'=>$this->options_group,
            'page'=>$this->options_page
        ]);

        $result = str_replace('<th scope="row">__CUSTOMREMOVE__</th>', '', $result);

        echo $result;
    }
1221771
public function getSettings()
    {
        $aValidSettings = $this->getValidSettings();
        $aSettings      = array();

        foreach ( $aValidSettings as $sSettingName ) {
            $aSettings[$sSettingName] = $this->getSetting( $sSettingName );
        }

        return $aSettings;
    }
1248665
public function actionSettings()
    {
        $settings = ImageResizer::$plugin->getSettings();

        $sourceOptions = array();
        $folderOptions = array();
        /** @var Volume $source */
        foreach (Craft::$app->volumes->getAllVolumes() as $source) {
            $sourceOptions[] = array('label' => $source->name, 'value' => $source->id);
        }

        $assetTree = Craft::$app->assets->getFolderTreeByVolumeIds(Craft::$app->volumes->getAllVolumeIds());
        ImageResizer::$plugin->service->getAssetFolders($assetTree, $folderOptions);

        $this->renderTemplate('image-resizer/settings/index.html', array(
            'settings' => $settings,
            'folderOptions' => $folderOptions,
            'sourceOptions' => $sourceOptions,
        ));
    }