<?php namespace ElementPack\Base; if (!defined('ABSPATH')) { exit; // Exit if accessed directly. } trait Singleton { private static $instance; public static function instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
support | Folder | 0755 |
|
|
condition.php | File | 2.54 KB | 0644 |
|
element-pack-base.php | File | 34.28 KB | 0644 |
|
element-pack-module-base.php | File | 2.17 KB | 0644 |
|
module-base.php | File | 709 B | 0644 |
|
singleton.php | File | 322 B | 0644 |
|