コード例 #1
0
 protected function filtre()
 {
     $this->number = filtreEntier($this->number);
 }
コード例 #2
0
 protected function filtre()
 {
     // On ne filtre pas l'id
     $this->createdDate = filtreString($this->createdDate);
     $this->modifiedDate = filtreString($this->modifiedDate);
     $this->status = filtreEntier($this->status);
     $this->shipoption = filtreString($this->shipoption);
     $this->firstname = filtreString($this->firstname);
     $this->middlename = filtreString($this->middlename);
     $this->lastname = filtreString($this->lastname);
     $this->company = filtreString($this->company);
     // En attendant que tout soit implémenté pour chaque software
     if (empty($this->shipCompany)) {
         $this->shipCompany = $this->company;
     }
     $this->shipCompany = filtreString($this->shipCompany);
     $this->address = filtreString($this->address);
     $this->street2 = filtreString($this->street2);
     $this->street3 = filtreString($this->street3);
     $this->xaddress = filtreString($this->xaddress);
     $this->city = filtreString($this->city);
     $this->state = filtreString($this->state);
     $this->postcode = filtreString($this->postcode);
     $this->country = filtreString($this->country);
     $this->residential = filtreString($this->residential);
     $this->email = filtreString($this->email);
     $this->phone = filtreString($this->phone);
     $this->fax = filtreString($this->fax);
     $this->website = filtreString($this->website);
     $this->shipfirstname = filtreString($this->shipfirstname);
     $this->shiplastname = filtreString($this->shiplastname);
     $this->shipaddress = filtreString($this->shipaddress);
     $this->shipstreet2 = filtreString($this->shipstreet2);
     $this->shipxaddress = filtreString($this->shipxaddress);
     $this->shipcity = filtreString($this->shipcity);
     $this->shipstate = filtreString($this->shipstate);
     $this->shippostcode = filtreString($this->shippostcode);
     $this->shipcountry = filtreString($this->shipcountry);
     $this->cardtype = filtreString($this->cardtype);
     foreach ($this->coupons as $key => $coupon) {
         $this->coupons[$key] = filtreString($coupon);
     }
     foreach ($this->privateNotes as $key => $note) {
         $this->privateNotes[$key] = filtreString($note);
     }
     $this->freight = filtreFloat($this->freight);
     $this->tax = filtreFloat($this->tax);
     // On met une valeur absolue car les ShipWorks veut une valeur positive pour les discount
     $this->discount = abs(filtreFloat($this->discount));
     $this->fee = filtreFloat($this->fee);
 }
コード例 #3
0
 protected function filtre()
 {
     $this->itemID = filtreEntier($this->itemID);
     $this->productID = filtreFloat($this->productID);
     $this->code = filtreString($this->code);
     $this->sku = filtreString($this->sku);
     $this->name = filtreString($this->name);
     $this->quantity = filtreEntier($this->quantity);
     $this->price = filtreFloat($this->price);
     $this->unitprice = filtreFloat($this->unitprice);
     $this->unitcost = filtreFloat($this->unitcost);
     $this->weight = filtreFloat($this->weight);
     $this->image = filtreString($this->image);
     $this->imageThumbnail = filtreString($this->imageThumbnail);
 }
コード例 #4
0
 protected function filtre()
 {
     $this->attributeID = filtreEntier($this->attributeID);
     $this->name = filtreString($this->name);
     $this->value = filtreString($this->value);
     $this->price = filtreFloat($this->price);
 }