Example #1
0
 /**
  * @param MAIL_PROVIDER $provider Publish mail using this provider.
  */
 public function __construct($provider)
 {
     parent::__construct($provider->context);
     $this->provider = $provider;
     $this->logs->set_logger($provider->logs->logger);
     $this->excerpt_length = $this->app->mail_options->excerpt_length;
     $this->_subscription_settings = new SUBSCRIPTION_SETTINGS($this->app);
 }
 /**
  * @param CONTEXT $context
  */
 public function __construct($context)
 {
     parent::__construct($context);
     $class_name = $this->context->final_class_name('RENDERER', 'webcore/gui/renderer.php');
     $this->renderer = new $class_name($context);
 }