/**
  * Constructor 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     self::set_template_root(STATO_APP_ROOT_PATH . '/app/views/mails');
     if (STATO_ENV == 'development') {
         self::set_default_transport(new DummyMailTransport());
     }
 }
示例#2
0
 public function __construct() {
   parent::__construct();
   $this->locale = $_SESSION['set_lang'];
   $this->host = $GLOBALS['cgp_host'];
   $this->userId = $GLOBALS['obm']['uid'];
   // to move somewhere else...
   mb_internal_encoding("UTF-8");
   SI18n::set_locale($this->locale);
   self::set_template_root(dirname(__FILE__).'/../../views/mail');
   $this->userInfo = get_user_info();
 }