You are here

public static function AddThisScriptManager::getInstance in AddThis 7.4

Return a single instance of the AddThisScriptManager.

Return value

AddThisScriptManager

5 calls to AddThisScriptManager::getInstance()
addthis_displays_addthis_display_markup__addthis_basic_button in addthis_displays/addthis_displays.addthis.inc
Implements hook_addthis_display_markup__[display]().
addthis_displays_addthis_display_markup__addthis_basic_toolbox in addthis_displays/addthis_displays.addthis.inc
Implements hook_addthis_display_markup__[display]().
addthis_page_build in ./addthis.module
Implements hook_page_build().
addthis_test_page_build in addthis_test/addthis_test.module
Implements hook_page_build().
hook_page_build in ./addthis.example.php
Implements hook_page_build().

File

classes/Services/AddThisScriptManager.php, line 37
Class definition of a script manager.

Class

AddThisScriptManager
@file Class definition of a script manager.

Code

public static function getInstance() {
  static $manager;
  if (!isset($manager)) {
    $manager = new AddThisScriptManager();
  }
  return $manager;
}