本文整理汇总了PHP中ObjectModel::validateFields方法的典型用法代码示例。如果您正苦于以下问题:PHP ObjectModel::validateFields方法的具体用法?PHP ObjectModel::validateFields怎么用?PHP ObjectModel::validateFields使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectModel
的用法示例。
在下文中一共展示了ObjectModel::validateFields方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getFields
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: getFields
public function getFields()
{
parent::validateFields();
$fields['rate'] = (double) $this->rate;
$fields['active'] = (int) $this->active;
return $fields;
}
示例3: getFields
public function getFields()
{
parent::validateFields();
$fields['file'] = pSQL($this->file);
$fields['mime'] = pSQL($this->mime);
return $fields;
}
示例4: getFields
public function getFields()
{
parent::validateFields();
$fields['id_page_type'] = (int) $this->id_page_type;
$fields['id_object'] = (int) $this->id_object;
return $fields;
}
示例5: getFields
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: getFields
public function getFields()
{
parent::validateFields();
$fields['id_feature'] = (int) $this->id_feature;
$fields['custom'] = (int) $this->custom;
return $fields;
}
示例7: getFields
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: getFields
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: getFields
public function getFields()
{
parent::validateFields();
$fields['tags_url'] = pSQL($this->tags_url);
$fields['tags_date_create'] = pSQL($this->tags_date_create);
return $fields;
}
示例10: getFields
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: getFields
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;
}
示例12: getFields
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: getFields
public function getFields()
{
parent::validateFields();
$fields['name'] = pSQL($this->name);
$fields['active'] = intval($this->active);
return $fields;
}
示例14: getFields
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: getFields
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;
}