# fluentform/1.2.4/app/Modules/Form/Settings/ExtraSettings.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 1.2.4. 96 lines.

- Page: https://pluginprobe.com/plugins/fluentform/1.2.4/code/app/Modules/Form/Settings/ExtraSettings.php
- Raw: https://pluginprobe.com/plugins/fluentform/1.2.4/raw/app/Modules/Form/Settings/ExtraSettings.php
- Modified: 2017-12-29T16:40:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/1.2.4/code/app/Modules/Form/Settings/ExtraSettings.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Modules\Form\Settings;

use FluentForm\App;
use FluentForm\App\Modules\Acl\Acl;
use FluentForm\Framework\Foundation\Application;

class ExtraSettings
{
    /**
     * @var \FluentForm\Framework\Request\Request $request
     */
    protected $request;

    /**
     * @var \WpFluent\QueryBuilder\QueryBuilderHandler
     */
    protected $form_model;

    /**
     * Construct the object
     * @throws \Exception
     * @return  void
     */
    public function __construct(Application $application)
    {
        Acl::verify('fluentform_settings_manager');

        $this->request = $application->request;
        $this->form_model = wpFluent()->table('fluentform_forms');
    }
	
    /**
     * Get extra settig navigations
     * @return void
     */
    public function getExtraSettingNavs()
    {
    	$formId = $this->request->get('form_id');
	    $extraSettings = array(
	    	array(
	    		'name' => 'web_hooks',
			    'label' => __('Web Hooks', 'fluentform'),
			    'action' => 'fluentform_get_settings_page',
			    'addon' => 'Fluent Web Hooks'
		    ),
		    array(
			    'name' => 'trello',
			    'label' => __('Trello', 'fluentform'),
			    'action' => 'fluentform_get_settings_page',
			    'addon' => 'Trello'
		    )
	    );
    	wp_send_json_success(
    		array( 
    			'setting_navs' => $extraSettings
		    ), 200);
    	exit();
    }
    
    /**
     * Get extra settigs component
     * @return void
     */
    public function getExtraSettingsComponent()
    {
    	$formId = $this->request->get('form_id');
	    $module = $this->request->get('module');
	    
    	$component = array(
    	    'name' => 'fluentform_settings_'.$module,
		    'props' => ['form_id'],
		    'template' => "<p>Setting Not Found</p>"
	    );

	    $component = apply_filters('fluentform_settings_module_'.$module, $component, $formId);
    	
    	wp_send_json_success(array(
    		'component' => $component,
		    'name' => 'fluentform_settings_'.$module,
		    'js_url' => site_url().'/test.js'
	    ));
    	exit();
    }
    
    /**
     * Get trello settigs
     * @return void
     */
    public function getTrelloSettingsComponent($component, $formId)
    {
    	return $component;
    }
}

```
