# shopbuilder/2.5.2/app/Models/Settings.php

ShopBuilder – WooCommerce Builder For Elementor, version 2.5.2. 49 lines.

- Page: https://pluginprobe.com/plugins/shopbuilder/2.5.2/code/app/Models/Settings.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/2.5.2/raw/app/Models/Settings.php
- Modified: 2024-12-27T09:18:48+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/shopbuilder/2.5.2/code/app/Models/Settings.php#L10-L20`.

```php
<?php

namespace RadiusTheme\SB\Models;

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'This script cannot be accessed directly.' );
}

use RadiusTheme\SB\Traits\SingletonTrait;

class Settings {

	use SingletonTrait;

	/**
	 * Public function store.
	 * store data for post
	 *
	 * @since 1.0.0
	 */
	public function get_sections() {

		$sections = [
			'general'  => GeneralList::instance()->get_section(),
			'elements' => ElementList::instance()->get_section(),
			'modules'  => ModuleList::instance()->get_section(),
		];

		return apply_filters( 'rtsb/core/settings/sections', $sections );
	}

	/**
	 * Public function store.
	 * store data for post
	 *
	 * @since 1.0.0
	 */
	public function get_data() {

		$data = [
			'widgets' => [],
			'modules' => ModuleList::instance()->get_data(),
		];

		return apply_filters( 'rtsb/core/settings/data', $data );
	}
}

```
