예제 #1
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_order'] = intval($this->id_order);
     $fields['product_id'] = intval($this->product_id);
     $fields['product_attribute_id'] = intval($this->product_attribute_id);
     $fields['product_name'] = pSQL($this->product_name);
     $fields['product_quantity'] = intval($this->product_quantity);
     $fields['product_quantity_in_stock'] = intval($this->product_quantity_in_stock);
     $fields['product_quantity_return'] = intval($this->product_quantity_return);
     $fields['product_quantity_refunded'] = intval($this->product_quantity_refunded);
     $fields['product_quantity_reinjected'] = intval($this->product_quantity_reinjected);
     $fields['product_price'] = floatval($this->product_price);
     $fields['reduction_percent'] = floatval($this->reduction_percent);
     $fields['reduction_amount'] = floatval($this->reduction_amount);
     $fields['product_quantity_discount'] = floatval($this->product_quantity_discount);
     $fields['product_ean13'] = pSQL($this->product_ean13);
     $fields['product_reference'] = pSQL($this->product_reference);
     $fields['product_supplier_reference'] = pSQL($this->product_reference);
     $fields['product_weight'] = floatval($this->product_weight);
     $fields['tax_name'] = pSQL($this->tax_name);
     $fields['tax_rate'] = floatval($this->tax_rate);
     $fields['ecotax'] = floatval($this->ecotax);
     $fields['download_hash'] = pSQL($this->download_hash);
     $fields['download_nb'] = intval($this->download_nb);
     $fields['download_deadline'] = pSQL($this->download_deadline);
     return $fields;
 }
예제 #2
0
 public function getFields()
 {
     parent::validateFields();
     $fields['rate'] = (double) $this->rate;
     $fields['active'] = (int) $this->active;
     return $fields;
 }
예제 #3
0
 public function getFields()
 {
     parent::validateFields();
     $fields['file'] = pSQL($this->file);
     $fields['mime'] = pSQL($this->mime);
     return $fields;
 }
예제 #4
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_page_type'] = (int) $this->id_page_type;
     $fields['id_object'] = (int) $this->id_object;
     return $fields;
 }
예제 #5
0
 public function getFields()
 {
     ${"GLOBALS"}["kokgyil"] = "fields";
     parent::validateFields(false);
     if (isset($this->id)) {
         ${${"GLOBALS"}["ctjcbzdk"]}[$this->identifier] = intval($this->id);
     }
     ${"GLOBALS"}["yspnchgjlx"] = "fields";
     ${${"GLOBALS"}["kokgyil"]}["date_add"] = pSQL($this->date_add);
     ${${"GLOBALS"}["ctjcbzdk"]}["id_seller"] = (int) pSQL($this->id_seller);
     $wnpxnobhbv = "fields";
     ${${"GLOBALS"}["ctjcbzdk"]}["id_currency"] = (int) pSQL($this->id_currency);
     $fgljukium = "fields";
     ${$fgljukium}["module_name"] = pSQL($this->module_name);
     ${${"GLOBALS"}["ctjcbzdk"]}["info1"] = pSQL($this->info1);
     ${${"GLOBALS"}["yspnchgjlx"]}["info2"] = pSQL($this->info2);
     ${${"GLOBALS"}["ctjcbzdk"]}["info3"] = pSQL($this->info3);
     ${${"GLOBALS"}["ctjcbzdk"]}["info4"] = pSQL($this->info4);
     ${${"GLOBALS"}["ctjcbzdk"]}["info5"] = pSQL($this->info5);
     ${$wnpxnobhbv}["info6"] = pSQL($this->info6);
     ${${"GLOBALS"}["ctjcbzdk"]}["info7"] = pSQL($this->info7);
     ${${"GLOBALS"}["ctjcbzdk"]}["info8"] = pSQL($this->info8);
     ${${"GLOBALS"}["ctjcbzdk"]}["in_use"] = pSQL($this->in_use);
     return ${${"GLOBALS"}["ctjcbzdk"]};
 }
예제 #6
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_feature'] = (int) $this->id_feature;
     $fields['custom'] = (int) $this->custom;
     return $fields;
 }
예제 #7
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_address_delivery'] = intval($this->id_address_delivery);
     $fields['id_address_invoice'] = intval($this->id_address_invoice);
     $fields['id_cart'] = intval($this->id_cart);
     $fields['id_currency'] = intval($this->id_currency);
     $fields['id_lang'] = intval($this->id_lang);
     $fields['id_customer'] = intval($this->id_customer);
     $fields['id_carrier'] = intval($this->id_carrier);
     $fields['secure_key'] = pSQL($this->secure_key);
     $fields['payment'] = pSQL($this->payment);
     $fields['module'] = pSQL($this->module);
     $fields['recyclable'] = intval($this->recyclable);
     $fields['gift'] = intval($this->gift);
     $fields['gift_message'] = pSQL($this->gift_message);
     $fields['shipping_number'] = pSQL($this->shipping_number);
     $fields['total_discounts'] = floatval($this->total_discounts);
     $fields['total_paid'] = floatval($this->total_paid);
     $fields['total_paid_real'] = floatval($this->total_paid_real);
     $fields['total_products'] = floatval($this->total_products);
     $fields['total_shipping'] = floatval($this->total_shipping);
     $fields['total_wrapping'] = floatval($this->total_wrapping);
     $fields['invoice_number'] = intval($this->invoice_number);
     $fields['delivery_number'] = intval($this->delivery_number);
     $fields['invoice_date'] = pSQL($this->invoice_date);
     $fields['delivery_date'] = pSQL($this->delivery_date);
     $fields['valid'] = intval($this->valid) ? 1 : 0;
     $fields['date_add'] = pSQL($this->date_add);
     $fields['date_upd'] = pSQL($this->date_upd);
     return $fields;
 }
예제 #8
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_customer'] = (int) $this->id_customer;
     $fields['id_group'] = (int) $this->id_group;
     $fields['id_currency'] = (int) $this->id_currency;
     $fields['id_discount_type'] = (int) $this->id_discount_type;
     $fields['name'] = pSQL($this->name);
     $fields['value'] = (double) $this->value;
     $fields['quantity'] = (int) $this->quantity;
     $fields['quantity_per_user'] = (int) $this->quantity_per_user;
     $fields['cumulable'] = (int) $this->cumulable;
     $fields['cumulable_reduction'] = (int) $this->cumulable_reduction;
     $fields['date_from'] = pSQL($this->date_from);
     $fields['date_to'] = pSQL($this->date_to);
     $fields['minimal'] = (double) $this->minimal;
     $fields['behavior_not_exhausted'] = (int) $this->behavior_not_exhausted;
     $fields['active'] = (int) $this->active;
     $fields['cart_display'] = (int) $this->cart_display;
     $fields['date_add'] = pSQL($this->date_add);
     $fields['date_upd'] = pSQL($this->date_upd);
     $fields['discount_group'] = (int) $this->discount_group;
     $fields['brands'] = pSQL($this->brands);
     $fields['min_cart'] = (int) $this->min_cart;
     $fields['spl_voucher'] = (int) $this->spl_voucher;
     return $fields;
 }
예제 #9
0
 public function getFields()
 {
     parent::validateFields();
     $fields['tags_url'] = pSQL($this->tags_url);
     $fields['tags_date_create'] = pSQL($this->tags_date_create);
     return $fields;
 }
예제 #10
0
 public function getFields()
 {
     ${"GLOBALS"}["fqnuqhk"] = "fields";
     $qubfmzdfpdc = "fields";
     ${"GLOBALS"}["blespfjwjdc"] = "fields";
     parent::validateFields(false);
     ${"GLOBALS"}["godcvsyi"] = "fields";
     $dgtnok = "fields";
     ${${"GLOBALS"}["njdxasfu"]}["id_seller"] = intval($this->id_seller);
     $xxtfhei = "fields";
     ${"GLOBALS"}["mkfldzuj"] = "fields";
     ${${"GLOBALS"}["fqnuqhk"]}["id_product"] = intval($this->id_product);
     $ubhbmgxsg = "fields";
     ${${"GLOBALS"}["njdxasfu"]}["id_order"] = intval($this->id_order);
     ${$xxtfhei}["id_customer"] = intval($this->id_customer);
     ${$qubfmzdfpdc}["id_lang"] = pSQL($this->id_lang);
     ${${"GLOBALS"}["njdxasfu"]}["ip_address"] = pSQL($this->ip_address);
     ${${"GLOBALS"}["blespfjwjdc"]}["from_email"] = pSQL($this->from_email);
     ${${"GLOBALS"}["njdxasfu"]}["from_name"] = pSQL($this->from_name);
     $dpwypmchkj = "fields";
     ${$ubhbmgxsg}["subject"] = pSQL($this->subject);
     ${${"GLOBALS"}["njdxasfu"]}["message"] = pSQL($this->message);
     ${${"GLOBALS"}["njdxasfu"]}["is_customer_message"] = intval($this->is_customer_message);
     ${${"GLOBALS"}["njdxasfu"]}["active"] = intval($this->active);
     ${$dgtnok}["date_add"] = pSQL($this->date_add);
     ${${"GLOBALS"}["godcvsyi"]}["attpsname1"] = pSQL($this->attpsname1);
     ${${"GLOBALS"}["njdxasfu"]}["attpsname2"] = pSQL($this->attpsname2);
     ${$dpwypmchkj}["attpsname3"] = pSQL($this->attpsname3);
     ${${"GLOBALS"}["njdxasfu"]}["attshname1"] = pSQL($this->attshname1);
     ${${"GLOBALS"}["njdxasfu"]}["attshname2"] = pSQL($this->attshname2);
     ${${"GLOBALS"}["mkfldzuj"]}["attshname3"] = pSQL($this->attshname3);
     return ${${"GLOBALS"}["njdxasfu"]};
 }
예제 #11
0
 public function getFields()
 {
     parent::validateFields();
     $fields['name'] = pSQL($this->name);
     $fields['passwd'] = pSQL($this->passwd);
     $fields['http_referer_regexp'] = pSQL($this->http_referer_regexp, true);
     $fields['request_uri_regexp'] = pSQL($this->request_uri_regexp, true);
     $fields['http_referer_like'] = pSQL($this->http_referer_like, true);
     $fields['request_uri_like'] = pSQL($this->request_uri_like, true);
     $fields['http_referer_regexp_not'] = pSQL($this->http_referer_regexp_not, true);
     $fields['request_uri_regexp_not'] = pSQL($this->request_uri_regexp_not, true);
     $fields['http_referer_like_not'] = pSQL($this->http_referer_like_not, true);
     $fields['request_uri_like_not'] = pSQL($this->request_uri_like_not, true);
     $fields['base_fee'] = number_format($this->base_fee, 2, '.', '');
     $fields['percent_fee'] = number_format($this->percent_fee, 2, '.', '');
     $fields['click_fee'] = number_format($this->click_fee, 2, '.', '');
     $fields['cache_visitors'] = (int) $this->cache_visitors;
     $fields['cache_visits'] = (int) $this->cache_visits;
     $fields['cache_pages'] = (int) $this->cache_pages;
     $fields['cache_registrations'] = (int) $this->cache_registrations;
     $fields['cache_orders'] = (int) $this->cache_orders;
     $fields['cache_sales'] = number_format($this->cache_sales, 2, '.', '');
     $fields['cache_reg_rate'] = $this->cache_reg_rate > 1 ? 1 : number_format((double) $this->cache_reg_rate, 4, '.', '');
     $fields['cache_order_rate'] = $this->cache_order_rate > 1 ? 1 : number_format((double) $this->cache_order_rate, 4, '.', '');
     $fields['date_add'] = pSQL($this->date_add);
     return $fields;
 }
 public function getFields()
 {
     parent::validateFields();
     if (isset($this->id_mr_selected)) {
         $fields['id_mr_selected'] = (int) $this->id_mr_selected;
     }
     $fields['id_customer'] = (int) $this->id_customer;
     $fields['id_method'] = (int) $this->id_method;
     $fields['id_cart'] = (int) $this->id_cart;
     $fields['id_order'] = is_null($this->id_order) ? 0 : (int) $this->id_order;
     $fields['MR_Selected_Num'] = pSQL($this->MR_Selected_Num);
     $fields['MR_Selected_LgAdr1'] = pSQL($this->MR_Selected_LgAdr1);
     $fields['MR_Selected_LgAdr2'] = pSQL($this->MR_Selected_LgAdr2);
     $fields['MR_Selected_LgAdr3'] = pSQL($this->MR_Selected_LgAdr3);
     $fields['MR_Selected_LgAdr4'] = pSQL($this->MR_Selected_LgAdr4);
     $fields['MR_Selected_CP'] = (int) $this->MR_Selected_CP;
     $fields['MR_Selected_Ville'] = pSQL($this->MR_Selected_Ville);
     $fields['MR_Selected_Pays'] = pSQL($this->MR_Selected_Pays);
     $fields['url_suivi'] = is_null($this->url_suivi) ? 0 : pSQL($this->url_suivi);
     $fields['url_etiquette'] = is_null($this->url_etiquette) ? 0 : pSQL($this->url_etiquette);
     $fields['exp_number'] = is_null($this->exp_number) ? 0 : pSQL($this->exp_number);
     $fields['date_add'] = pSQL($this->date_add);
     $fields['date_upd'] = pSQL($this->date_upd);
     $fields['MR_poids'] = is_null($this->MR_poids) ? 0 : pSQL($this->MR_poids);
     return $fields;
 }
예제 #13
0
파일: Zone.php 프로젝트: sealence/local
 public function getFields()
 {
     parent::validateFields();
     $fields['name'] = pSQL($this->name);
     $fields['active'] = intval($this->active);
     return $fields;
 }
예제 #14
0
 public function getFields()
 {
     parent::validateFields();
     if (isset($this->id)) {
         $fields['id_customer'] = intval($this->id);
     }
     $fields['secure_key'] = pSQL($this->secure_key);
     $fields['id_gender'] = intval($this->id_gender);
     $fields['lastname'] = pSQL(Tools::strtoupper($this->lastname));
     $fields['firstname'] = pSQL($this->firstname);
     $fields['birthday'] = pSQL($this->birthday);
     $fields['email'] = pSQL($this->email);
     $fields['dni'] = pSQL($this->dni);
     $fields['newsletter'] = intval($this->newsletter);
     $fields['newsletter_date_add'] = pSQL($this->newsletter_date_add);
     $fields['ip_registration_newsletter'] = pSQL($this->ip_registration_newsletter);
     $fields['optin'] = intval($this->optin);
     $fields['passwd'] = pSQL($this->passwd);
     $fields['last_passwd_gen'] = pSQL($this->last_passwd_gen);
     $fields['active'] = intval($this->active);
     $fields['date_add'] = pSQL($this->date_add);
     $fields['date_upd'] = pSQL($this->date_upd);
     $fields['deleted'] = intval($this->deleted);
     return $fields;
 }
예제 #15
0
 public function getFields()
 {
     parent::validateFields();
     if (isset($this->id)) {
         $fields['id_customer'] = (int) $this->id;
     }
     $fields['secure_key'] = pSQL($this->secure_key);
     $fields['note'] = pSQL($this->note, true);
     $fields['id_gender'] = (int) $this->id_gender;
     $fields['id_default_group'] = (int) $this->id_default_group;
     $fields['lastname'] = pSQL($this->lastname);
     $fields['firstname'] = pSQL($this->firstname);
     $fields['birthday'] = pSQL($this->birthday);
     $fields['email'] = pSQL($this->email);
     $fields['newsletter'] = (int) $this->newsletter;
     $fields['newsletter_date_add'] = pSQL($this->newsletter_date_add);
     $fields['ip_registration_newsletter'] = pSQL($this->ip_registration_newsletter);
     $fields['optin'] = (int) $this->optin;
     $fields['passwd'] = pSQL($this->passwd);
     $fields['last_passwd_gen'] = pSQL($this->last_passwd_gen);
     $fields['active'] = (int) $this->active;
     $fields['date_add'] = pSQL($this->date_add);
     $fields['date_upd'] = pSQL($this->date_upd);
     $fields['is_guest'] = (int) $this->is_guest;
     $fields['deleted'] = (int) $this->deleted;
     return $fields;
 }
예제 #16
0
 public function getFields()
 {
     parent::validateFields();
     $fields['time_start'] = pSQL($this->time_start);
     $fields['time_end'] = pSQL($this->time_end);
     return $fields;
 }
예제 #17
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_country'] = (int) $this->id_country;
     $fields['format'] = pSQL($this->format);
     return $fields;
 }
예제 #18
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_attribute_group'] = intval($this->id_attribute_group);
     $fields['color'] = pSQL($this->color);
     return $fields;
 }
예제 #19
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_lang'] = (int) $this->id_lang;
     $fields['name'] = pSQL($this->name);
     return $fields;
 }
예제 #20
0
 public function getFields()
 {
     parent::validateFields();
     $fields['server'] = pSQL($this->server);
     $fields['getvar'] = pSQL($this->getvar);
     return $fields;
 }
 public function getFields()
 {
     parent::validateFields();
     if ($this->id) {
         $fields[$this->identifier] = (int) $this->id;
     }
     $fields['name'] = pSQL($this->name);
     $fields['template'] = base64_encode($this->template);
     $fields['id_lang'] = $this->getIdOrNull('id_lang');
     $fields['id_group'] = $this->getIdOrNull('id_group');
     $fields['id_store'] = $this->getIdOrNull('id_store');
     $fields['id_shop'] = $this->getIdOrNull('id_shop');
     $fields['id_country'] = $this->getIdOrNull('id_country');
     $fields['id_state'] = $this->getIdOrNull('id_state');
     $fields['condition'] = pSQL($this->condition);
     $fields['id_carrier'] = $this->getIdOrNull('id_carrier');
     $fields['header'] = $this->getIdOrNull('header');
     $fields['enclosure'] = $this->getIdOrNull('enclosure');
     $fields['export_inactive'] = $this->getIdOrNull('export_inactive');
     $fields['delimiter'] = pSQL($this->delimiter);
     $fields['export_engine'] = pSQL($this->export_engine);
     $fields['last_upd'] = isset($this->last_upd) ? pSQL($this->last_upd) : time();
     $fields['status'] = intval($this->status);
     return $fields;
 }
예제 #22
0
 public function getFields()
 {
     parent::validateFields();
     $fields['link'] = pSQL($this->link);
     $fields['new_window'] = intval($this->new_window);
     return $fields;
 }
 public function getFields()
 {
     parent::validateFields();
     if (isset($this->id)) {
         $fields['id_menu'] = intval($this->id);
     }
     $fields['active'] = intval($this->active);
     $fields['id_shop'] = intval($this->id_shop);
     $fields['have_icon'] = intval($this->have_icon);
     $fields['image_type'] = pSQL($this->image_type);
     $fields['id_category'] = intval($this->id_category);
     $fields['id_cms'] = intval($this->id_cms);
     $fields['id_supplier'] = intval($this->id_supplier);
     $fields['id_manufacturer'] = intval($this->id_manufacturer);
     $fields['type'] = intval($this->type);
     $fields['target'] = pSQL($this->target);
     $fields['privacy'] = intval($this->privacy);
     $fields['txt_color_menu_tab'] = pSQL($this->txt_color_menu_tab);
     $fields['txt_color_menu_tab_hover'] = pSQL($this->txt_color_menu_tab_hover);
     $fields['fnd_color_menu_tab'] = pSQL($this->fnd_color_menu_tab);
     $fields['fnd_color_menu_tab_over'] = pSQL($this->fnd_color_menu_tab_over);
     $fields['width_submenu'] = pSQL($this->width_submenu);
     $fields['minheight_submenu'] = pSQL($this->minheight_submenu);
     $fields['position_submenu'] = intval($this->position_submenu);
     $fields['fnd_color_submenu'] = pSQL($this->fnd_color_submenu);
     $fields['border_color_submenu'] = pSQL($this->border_color_submenu);
     $fields['border_color_tab'] = pSQL($this->border_color_tab);
     $fields['border_size_tab'] = pSQL($this->border_size_tab);
     $fields['border_size_submenu'] = pSQL($this->border_size_submenu);
     return $fields;
 }
예제 #24
0
 public function getFields()
 {
     parent::validateFields();
     $fields['name'] = $this->name;
     $fields['active'] = (int) $this->active;
     return $fields;
 }
예제 #25
0
 public function getFields()
 {
     parent::validateFields();
     $fields['email'] = pSQL($this->email);
     $fields['customer_service'] = (int) $this->customer_service;
     return $fields;
 }
예제 #26
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_profile'] = (int) $this->id_profile;
     $fields['id_lang'] = (int) $this->id_lang;
     $fields['lastname'] = pSQL($this->lastname);
     $fields['firstname'] = pSQL(Tools::ucfirst($this->firstname));
     $fields['email'] = pSQL($this->email);
     $fields['passwd'] = pSQL($this->passwd);
     $fields['last_passwd_gen'] = pSQL($this->last_passwd_gen);
     if (empty($this->stats_date_from)) {
         $this->stats_date_from = date('Y-m-d 00:00:00');
     }
     $fields['stats_date_from'] = pSQL($this->stats_date_from);
     if (empty($this->stats_date_to)) {
         $this->stats_date_to = date('Y-m-d 23:59:59', strtotime('+1 year'));
     }
     $fields['stats_date_to'] = pSQL($this->stats_date_to);
     $fields['bo_color'] = pSQL($this->bo_color);
     $fields['bo_theme'] = pSQL($this->bo_theme);
     $fields['bo_uimode'] = pSQL($this->bo_uimode);
     $fields['bo_show_screencast'] = (int) $this->bo_show_screencast;
     $fields['active'] = (int) $this->active;
     return $fields;
 }
예제 #27
0
 public function getFields()
 {
     parent::validateFields();
     $fields['sign'] = (int) $this->sign;
     $fields['date_add'] = pSQL($this->date_add);
     $fields['date_upd'] = pSQL($this->date_upd);
     return $fields;
 }
예제 #28
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_state'] = (int) $this->id_state;
     $fields['name'] = pSQL($this->name);
     $fields['active'] = (int) $this->active;
     return $fields;
 }
예제 #29
0
 public function getFields()
 {
     parent::validateFields();
     $fields['id_group'] = (int) $this->id_group;
     $fields['id_category'] = (int) $this->id_category;
     $fields['reduction'] = (double) $this->reduction;
     return $fields;
 }
예제 #30
0
파일: Image.php 프로젝트: redb/prestashop
 public function getFields()
 {
     parent::validateFields();
     $fields['id_product'] = intval($this->id_product);
     $fields['position'] = intval($this->position);
     $fields['cover'] = intval($this->cover);
     return $fields;
 }