public static function AddThis::getInstance in AddThis 7.4
Get the singleton instance of the AddThis class.
Return value
3 calls to AddThis::getInstance()
- AddThisScriptManager::__construct in classes/
Services/ AddThisScriptManager.php - Construct method.
- 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]().
File
- classes/
AddThis.php, line 99 - An AddThis-class.
Class
- AddThis
- @file An AddThis-class.
Code
public static function getInstance() {
if (!isset(self::$instance)) {
$add_this = new AddThis();
$add_this
->setJson(new AddThisJson());
self::$instance = $add_this;
}
return self::$instance;
}