You are here

public static function InstapageCmsPluginPageModel::getInstance in Instapage plugin 8.3

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

Gets the class instance.

Return value

object Class instance.

10 calls to InstapageCmsPluginPageModel::getInstance()
InstapageCmsPluginAjaxController::deletePage in core/InstapageCmsPluginAjaxController.php
Deletes a page from DB.
InstapageCmsPluginAjaxController::doAction in core/InstapageCmsPluginAjaxController.php
Executes an action set in the request.
InstapageCmsPluginAjaxController::getLandingPages in core/InstapageCmsPluginAjaxController.php
Gets the landing pages stored in the DB.
InstapageCmsPluginAjaxController::getStats in core/InstapageCmsPluginAjaxController.php
Gets the stats of landing pages from local cache or from app, if cache is not present / invalid.
InstapageCmsPluginAjaxController::loadListPages in core/InstapageCmsPluginAjaxController.php
Loads listing page.

... See full list

File

core/models/InstapageCmsPluginPageModel.php, line 23

Class

InstapageCmsPluginPageModel
Class responsible for managing the landing pages.

Code

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