You are here

public static function InstapageCmsPluginDBModel::getInstance in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/models/InstapageCmsPluginDBModel.php \InstapageCmsPluginDBModel::getInstance()

Gets the class instance.

Return value

object Class instance.

28 calls to InstapageCmsPluginDBModel::getInstance()
InstapageCmsPluginConnector::getLandingPageSlugs in core/connectors/InstapageCmsPluginConnector.php
Gets the slugs of all landing pages stored in the plugin's DB.
InstapageCmsPluginConnector::initPlugin in core/connectors/InstapageCmsPluginConnector.php
Initiates Instapage plugin's DB structure and loads plugin's classes and selected connector.
InstapageCmsPluginConnector::isProhibitedLandingPageSlug in core/connectors/InstapageCmsPluginConnector.php
Checks if given slug is prohibited in terms of publishing a landing page. If it's free - will return false. Otherwise an array with slug details will be returned
InstapageCmsPluginDebugLogModel::clear in core/models/InstapageCmsPluginDebugLogModel.php
Clears the debug log.
InstapageCmsPluginDebugLogModel::getDbStructure in core/models/InstapageCmsPluginDebugLogModel.php
Gets database structure

... See full list

File

core/models/InstapageCmsPluginDBModel.php, line 54

Class

InstapageCmsPluginDBModel
Class responsible for communication with DB.

Code

public static function getInstance() {
  if (self::$dbModel === null) {
    self::$dbModel = new InstapageCmsPluginDBModel();
  }
  return self::$dbModel;
}