[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
suretriggers
/
src
/
Traits
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 SingletonLoader.php
986 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: SingletonLoader.php
<?php /** * SingletonLoader. * php version 5.6 * * @category SingletonLoader * @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\Traits; /** * Trait SingletonLoader * * @template SingletonLoader * * @category SingletonLoader * @package SureTriggers\Traits * @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 */ trait SingletonLoader { /** * Instance * * @access public * @var null|object * @since 1.0.0 */ public static $_instance; /** * Initiator * * @return SingletonLoader|object|null * * @since 1.0.0 */ public static function get_instance() { if ( empty( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } }