Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     try {
         $writer = new Zend_Log_Writer_Stream(Axis::config()->system->path . Axis::config()->log->main->payment);
         $this->_logger = new Zend_Log($writer);
     } catch (Exception $e) {
     }
 }
Esempio n. 2
0
 /**
  * Construct shipping class method
  *
  * @param string $type
  */
 public function __construct($type = null)
 {
     parent::__construct();
     //fix  single call
     if (is_array($type) && !count($type)) {
         $type = null;
     }
     $this->_type = $type;
     try {
         $writer = new Zend_Log_Writer_Stream(Axis::config('system/path') . Axis::config('log/main/shipping'));
         $this->_logger = new Zend_Log($writer);
     } catch (Exception $e) {
     }
 }