You are here

function InstapageCmsPluginDBModel::__construct in Instapage plugin 8.3

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

Class constructor. Sets the properties based on current CMS settings.

File

core/models/InstapageCmsPluginDBModel.php, line 41

Class

InstapageCmsPluginDBModel
Class responsible for communication with DB.

Code

function __construct() {
  $this->prefix = InstapageCmsPluginConnector::getSelectedConnector()
    ->getDBPrefix();
  $this->charsetCollate = InstapageCmsPluginConnector::getSelectedConnector()
    ->getCharsetCollate();
  $this->optionsTable = $this->prefix . 'instapage_options';
  $this->pagesTable = $this->prefix . 'instapage_pages';
  $this->debugTable = $this->prefix . 'instapage_debug';
}