public function __construct()
 {
     parent::__construct();
     $settings = new DpdPolandConfiguration();
     $this->params = array('authDataV1' => array('login' => $settings->login, 'masterFid' => $settings->customer_fid, 'password' => $settings->password));
     try {
         $this->client = new SoapClient($settings->ws_url, array('trace' => true));
         return $this->client;
     } catch (Exception $e) {
         self::$errors[] = $e->getMessage();
     }
     return false;
 }
 public function __construct()
 {
     parent::__construct();
     $this->cookie = new Cookie(_DPDPOLAND_COOKIE_);
 }
 public function __construct()
 {
     parent::__construct();
     $this->csv_titles = array('iso_country' => $this->l('Country'), 'weight_from' => $this->l('Parcel weight from (kg)'), 'weight_to' => $this->l('Parcel weight to (kg)'), 'parcel_price' => $this->l('Parcel price (PLN)'), 'id_carrier' => $this->l('Carrier'), 'cod_price' => $this->l('COD cost (PLN)'));
 }
 public function __construct()
 {
     parent::__construct();
     $this->rules = array('pickupDate' => array('validate' => 'isDate', 'fieldname' => $this->l('Date of pickup'), 'required' => true), 'pickupTime' => array('validate' => 'isAnything', 'fieldname' => $this->l('Timeframe of pickup'), 'required' => true), 'orderType' => array('validate' => 'isAnything', 'fieldname' => $this->l('Shipment type'), 'required' => true), 'orderContent' => array('validate' => 'isAnything', 'fieldname' => $this->l('General shipment content'), 'required' => false), 'dox' => array('validate' => 'isAnything', 'fieldname' => $this->l('Envelopes'), 'required' => false), 'doxCount' => array('validate' => 'isUnsignedInt', 'fieldname' => $this->l('Number of envelopes'), 'required' => true, 'dependency' => 'dox'), 'parcels' => array('validate' => 'isUnsignedInt', 'fieldname' => $this->l('Parcels'), 'required' => false), 'parcelsCount' => array('validate' => 'isUnsignedInt', 'fieldname' => $this->l('Number of parcels'), 'required' => true, 'dependency' => 'parcels'), 'parcelsWeight' => array('validate' => 'isUnsignedFloat', 'fieldname' => $this->l('Summary weight'), 'required' => true, 'dependency' => 'parcels'), 'parcelMaxWeight' => array('validate' => 'isUnsignedFloat', 'fieldname' => $this->l('Weight of the heaviest item'), 'required' => true, 'dependency' => 'parcels'), 'parcelMaxHeight' => array('validate' => 'isUnsignedFloat', 'fieldname' => $this->l('Height of the tallest item'), 'required' => true, 'dependency' => 'parcels'), 'parcelMaxDepth' => array('validate' => 'isUnsignedFloat', 'fieldname' => $this->l('Length of the largest item'), 'required' => true, 'dependency' => 'parcels'), 'parcelMaxWidth' => array('validate' => 'isUnsignedFloat', 'fieldname' => $this->l('Width of the longest item'), 'required' => true, 'dependency' => 'parcels'), 'pallet' => array('validate' => 'isAnything', 'fieldname' => $this->l('Pallets'), 'required' => false), 'palletsCount' => array('validate' => 'isUnsignedInt', 'fieldname' => $this->l('Number of pallets'), 'required' => true, 'dependency' => 'pallet'), 'palletsWeight' => array('validate' => 'isUnsignedFloat', 'fieldname' => $this->l('Summary weight'), 'required' => true, 'dependency' => 'pallet'), 'palletMaxWeight' => array('validate' => 'isUnsignedFloat', 'fieldname' => $this->l('Weight of the heaviest item'), 'required' => true, 'dependency' => 'pallet'), 'palletMaxHeight' => array('validate' => 'isUnsignedFloat', 'fieldname' => $this->l('Height of the tallest item'), 'required' => true, 'dependency' => 'pallet'));
 }