Warning: This class has been deprecated.
InitializePlugin
Class InitializePlugin
Source Source
File: src/legacy.php
class InitializePlugin { /** * The plugin name * * @since 1.0.0 * @access private * @var string */ const PLUGIN_NAME = 'Uncanny Automator'; /** * The plugin name acronym * * @since 1.0.0 * @access private * @var string */ const PLUGIN_PREFIX = 'uap'; /** * Min PHP Version * * @since 1.0.0 * @access private * @var string */ const MIN_PHP_VERSION = '7.0'; /** * The plugin version number * * @since 1.0.0 * @access private * @var string */ const PLUGIN_VERSION = '3.0.1'; /** * The database version number * * @since 1.0.0 * @access private * @var string */ const DATABASE_VERSION = '3.0'; /** * The database views version number * * @since 2.5.1 * @access private * @var string */ const DATABASE_VIEWS_VERSION = '3.0'; /** * The full path and filename * * @since 1.0.0 * @access private * @var string */ const MAIN_FILE = __FILE__; /** * Allows the debugging scripts to initialize and log them in a file * * @since 1.0.0 * @access private * @var string */ private $log_debug_messages = false; /** * The instance of the class * * @since 1.0.0 * @access private * @var Object */ private static $instance = null; /** * Creates singleton instance of class * * @return InitializePlugin $instance The InitializePlugin Class * @since 1.0.0 * */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * class constructor */ private function __construct() { } }
Expand full source code Collapse full source code View on Github
Methods Methods
- __construct — class constructor
- get_instance — Creates singleton instance of class
Changelog Changelog
Version | Description |
---|---|
3.0 | Introduced. |