You are here

final public static function Sweaver::get_instance in Sweaver 6

Same name and namespace in other branches
  1. 7 sweaver.inc \Sweaver::get_instance()

GetInstance Static method to always return the same object Sweaver. There can only be one Sweaver.

16 calls to Sweaver::get_instance()
sweaverThemeSettings::performStyleAction in tests/sweaver.themesettings.test
Call submit methods.
sweaver_drush_edit_style in drush/sweaver.drush.inc
Edit a style.
sweaver_frontend in ./sweaver.module
Rock 'n' roll: the sweaver editor.
sweaver_frontend_submit in ./sweaver.module
Sweaver frontend submit.
sweaver_get_plugin in ./sweaver.module
Get all plugins or a plugin handler.

... See full list

File

./sweaver.inc, line 41
Class Sweaver.

Class

Sweaver
@file Class Sweaver.

Code

public static final function get_instance() {
  if (!isset(self::$instance)) {
    self::$instance = new Sweaver();
  }
  return self::$instance;
}