Exemple #1
0
 /**
  * Constructor
  *
  * [!] Override to create instance of mail template
  * 
  * @param   array  $config  A named configuration array for object construction.
  * @return  void
  */
 public function __construct($config = array())
 {
     // create new mail template, loading email.php
     // in active template falling back to system email.php
     $this->_mailTemplate = new Template();
     // call parent construct
     parent::__construct($config);
 }
Exemple #2
0
 /**
  * Constructor
  *
  * @param   array  $config  A named configuration array for object construction.<br/>
  * @return  void
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Set a base path for use by the view
     if (!array_key_exists('base_path', $config)) {
         $config['base_path'] = JPATH_COMPONENT;
     }
     $this->_basePath = $config['base_path'];
 }
Exemple #3
0
 /**
  * Constructor
  *
  * @param   array  $config
  * @return  void
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Set a base path for use by the view
     if (!array_key_exists('base_path', $config)) {
         $config['base_path'] = __DIR__;
     }
     $this->_basePath = $config['base_path'];
     // Set the default template search path
     if (!array_key_exists('template_path', $config)) {
         $config['template_path'] = $this->_basePath . DS . 'Views';
     }
     $this->_setPath('template', $config['template_path']);
 }