# weforms/1.4.7/includes/compat/class-abstract-wpuf-integration.php

weForms – Easy Drag &amp; Drop Contact Form Builder For WordPress, version 1.4.7. 118 lines.

- Page: https://pluginprobe.com/plugins/weforms/1.4.7/code/includes/compat/class-abstract-wpuf-integration.php
- Raw: https://pluginprobe.com/plugins/weforms/1.4.7/raw/includes/compat/class-abstract-wpuf-integration.php
- Modified: 2020-01-10T10:15:44+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/weforms/1.4.7/code/includes/compat/class-abstract-wpuf-integration.php#L10-L20`.

```php
<?php

if ( !class_exists( 'WPUF_Abstract_Integration' ) ) {

    /**
     * The Integration abstract class
     */
    abstract class WPUF_Abstract_Integration {

        /**
         * The integration id
         *
         * @var bool
         */
        public $id;

        /**
         * If the integration is enabled
         *
         * @var bool
         */
        public $enabled;

        /**
         * Integration title
         *
         * @var string
         */
        public $title;

        /**
         * URL to the integration icon
         *
         * @var string
         */
        public $icon;

        /**
         * The settings fields for this integrations
         *
         * @var array
         */
        public $settings_fields = [];

        /**
         * Get the integration title
         *
         * @return string
         */
        public function get_title() {
            return apply_filters( 'wpuf_integration_title', $this->title, $this );
        }

        /**
         * Get the integration id
         *
         * @return string
         */
        public function get_id() {
            return apply_filters( 'wpuf_integration_title', $this->id, $this );
        }

        /**
         * Get intgration icon
         *
         * @return string
         */
        public function get_icon() {
            return apply_filters( 'wpuf_integration_icon', $this->icon, $this );
        }

        /**
         * Check if the integration is enabled
         *
         * @return bool
         */
        public function is_enabled() {
            return $this->enabled == true;
        }

        /**
         * Get the settings fields
         *
         * @return array
         */
        public function get_settings_fields() {
            return $this->settings_fields;
        }

        /**
         * Get the integration settings for the component
         *
         * @return array
         */
        public function get_js_settings() {
            return [
            'id'       => $this->get_id(),
            'title'    => $this->get_title(),
            'icon'     => $this->get_icon(),
            'settings' => $this->get_settings_fields(),
        ];
        }

        /**
         * Register the integration in the builder settings
         *
         * @param array $integrations
         *
         * @return array
         */
        public function register_integration_settings( $integrations ) {
            $integrations[ $this->id ] = $this->get_js_settings();

            return $integrations;
        }
    }
}

```
