You are here

final public static function Sweaver::get_instance in Sweaver 7

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

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

20 calls to Sweaver::get_instance()
sweaverThemeSettings::buildStyleConfiguration in tests/sweaver.themesettings.test
Build form, form_state values and copy files when necessary.
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.

... See full list

File

./sweaver.inc, line 40
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;
}