Example #1
0
 public function __construct($registry)
 {
     parent::__construct($registry);
     if (($this->Cart = Session::getActiveCart()) === NULL) {
         $this->Cart = array();
     }
     if (($this->globalPrice = Session::getActiveGlobalPrice()) === NULL) {
         $this->globalPrice = 0.0;
     }
     if (($this->globalWeight = Session::getActiveGlobalWeight()) === NULL) {
         $this->globalWeight = 0.0;
     }
     if (($this->globalPriceWithoutVat = Session::getActiveGlobalPriceWithoutVat()) === NULL) {
         $this->globalPriceWithoutVat = 0.0;
     }
     if (($this->globalPriceWithDispatchmethod = Session::getActiveGlobalPriceWithDispatchmethod()) === NULL) {
         $this->globalPriceWithDispatchmethod = 0.0;
     }
     if (($this->globalPriceWithDispatchmethodNetto = Session::getActiveGlobalPriceWithDispatchmethodNetto()) === NULL) {
         $this->globalPriceWithDispatchmethodNetto = 0.0;
     }
     if ($this->count = Session::getActiveCount() === NULL) {
         $this->count = 0;
     }
 }
Example #2
0
 public function __construct($registry)
 {
     parent::__construct($registry);
     $this->business = '';
     $this->sandbox = 1;
     $settings = $this->registry->core->loadModuleSettings('paypal', Helper::getViewId());
     if (!empty($settings)) {
         $this->business = $settings['business'];
         $this->apiusername = $settings['apiusername'];
         $this->apipassword = $settings['apipassword'];
         $this->apisignature = $settings['apisignature'];
         $this->sandbox = $settings['sandbox'];
     }
     $this->gatewayurl = "https://www.paypal.com/cgi-bin/webscr";
     if ($this->sandbox === 1) {
         $this->gatewayurl = "https://www.sandbox.paypal.com/cgi-bin/webscr";
     }
     $this->returnurl = App::getURLAdress() . Seo::getSeo('payment') . '/confirm';
     $this->cancelurl = App::getURLAdress() . Seo::getSeo('payment') . '/cancel';
     $this->notifyurl = App::getURLAdress() . 'paypalreport';
     $this->ipnLogFile = ROOTPATH . 'logs/paypal.ipn_results.log';
     $this->lastError = '';
     $this->ipnData = array();
     $this->ipnResponse = '';
 }
Example #3
0
 public function __construct($registry)
 {
     parent::__construct($registry);
     $this->queryColumns = array();
     $this->queryColumnsOptions = array();
     $this->queryTable = '';
     $this->queryFrom = '';
     $this->queryWhere = '';
     $this->queryAdditionalWhere = '';
     $this->queryGroupBy = '';
     $this->encryptionKey = Session::getActiveEncryptionKeyValue();
     $this->languageId = Helper::getLanguageId();
     $this->sqlParams = array();
     $this->viewId = !is_null(Helper::getViewId()) ? Helper::getViewId() : 0;
     $this->viewIds = Helper::getViewIds();
 }
Example #4
0
 public function __construct($registry, $modelFile)
 {
     parent::__construct($registry, $modelFile);
     $this->layer = $this->registry->loader->getCurrentLayer();
 }
Example #5
0
 public function __construct($registry, $modelFile)
 {
     parent::__construct($registry, $modelFile);
     $this->dataset = NULL;
 }
Example #6
0
 public function __construct($registry, $modelFile)
 {
     parent::__construct($registry, $modelFile);
 }