BCMigration
in package
BC Migration class.
Table of Contents
Properties
- $version : string
- The version number.
- $instance : BCMigration|null
- The single instance of the class.
Methods
- init() : BCMigration
- Gets the single instance of the class.
- maybe_create_uploads_folder() : void
- Checks if the uploads folder exists and creates it if not.
- __construct() : void
- Constructor.
- includes() : void
- Includes the necessary files for plugin functionality.
Properties
$version
The version number.
public
string
$version
= '0.3.2'
$instance
The single instance of the class.
protected
static BCMigration|null
$instance
= null
Methods
init()
Gets the single instance of the class.
public
static init() : BCMigration
Return values
BCMigration —Single instance of the class.
maybe_create_uploads_folder()
Checks if the uploads folder exists and creates it if not.
public
maybe_create_uploads_folder() : void
__construct()
Constructor.
private
__construct() : void
includes()
Includes the necessary files for plugin functionality.
private
includes() : void