/** * 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; }
/** * Returns system mailer object. * * @return OW_Mailer */ public static function getMailer() { return OW_Mailer::getInstance(); }