Exemple #1
0
 /**
  * This implements the 'singleton' design pattern
  *
  * @return rcmail The one and only instance
  */
 static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new rcmail();
         self::$instance->startup();
         // init AFTER object was linked with self::$instance
     }
     return self::$instance;
 }