REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 816 B
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tlp-team/app/Traits/SingletonTrait.php
Text
Base64
<?php /** * Singleton Trait. */ namespace RT\Team\Traits; // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'This script cannot be accessed directly.' ); } /** * Singleton Trait. */ trait SingletonTrait { /** * Store the singleton object. */ private static $singleton = false; /** * Create an inaccessible constructor. */ private function __construct() { $this->init(); } /** * Prevent cloning. */ private function __clone() { } /** * Prevent unserializing. */ public function __wakeup() { } /** * Fetch an instance of the class. */ public static function get_instance() { if ( self::$singleton === false ) { self::$singleton = new self(); } return self::$singleton; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
SingletonTrait.php
816 B
lrw-r--r--
2026-06-03 14:57:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).