/** * the singleton pattern * * @return Sales_Setup_DemoData */ public static function getInstance() { if (self::$_instance === NULL) { self::$_instance = new self(); } return self::$_instance; }
/** * unsets the instance to save memory, be aware that hasBeenRun still needs to work after unsetting! * */ public function unsetInstance() { if (self::$_instance !== NULL) { self::$_instance = null; } }