Beispiel #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return OW_Mailer
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Beispiel #2
0
 /**
  * Returns system mailer object.
  *
  * 	@return OW_Mailer
  */
 public static function getMailer()
 {
     return OW_Mailer::getInstance();
 }