Beispiel #1
0
 /**
  * Get instance from the class.
  *
  * @static
  * @return    Helper
  */
 public static function getInstance()
 {
     if (!self::$instance instanceof Helper) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Beispiel #2
0
 /**
  * Get instance from the class.
  *
  * @static
  * @return    Helper
  */
 public static function getInstance()
 {
     if (!self::$instance instanceof Helper) {
         self::$instance = new self();
     }
     self::setDatabaseConnection($GLOBALS['TYPO3_DB']);
     return self::$instance;
 }