// Fix #PSFV-48
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ class AddressCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
if (isset($this->id))
|
||||
$fields['id_address'] = (int)($this->id);
|
||||
$fields['id_customer'] = is_null($this->id_customer) ? 0 : (int)($this->id_customer);
|
||||
|
||||
@@ -93,7 +93,7 @@ class AddressFormatCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_country'] = (int)($this->id_country);
|
||||
$fields['format'] = pSQL($this->format);
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@ class AliasCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['alias'] = pSQL($this->alias);
|
||||
$fields['search'] = pSQL($this->search);
|
||||
|
||||
@@ -49,7 +49,7 @@ class AttachmentCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['file_name'] = pSQL($this->file_name);
|
||||
$fields['file'] = pSQL($this->file);
|
||||
$fields['mime'] = pSQL($this->mime);
|
||||
@@ -58,8 +58,8 @@ class AttachmentCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name', 'description'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name', 'description'));
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@@ -55,7 +55,7 @@ class AttributeCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_attribute_group'] = (int)($this->id_attribute_group);
|
||||
$fields['color'] = pSQL($this->color);
|
||||
@@ -70,8 +70,8 @@ class AttributeCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@@ -58,7 +58,7 @@ class AttributeGroupCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['is_color_group'] = (int)($this->is_color_group);
|
||||
|
||||
@@ -77,8 +77,8 @@ class AttributeGroupCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name', 'public_name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name', 'public_name'));
|
||||
}
|
||||
|
||||
public static function cleanDeadCombinations()
|
||||
|
||||
+3
-3
@@ -48,7 +48,7 @@ class CMSCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_cms'] = (int)($this->id);
|
||||
$fields['id_cms_category'] = (int)($this->id_cms_category);
|
||||
$fields['position'] = (int)($this->position);
|
||||
@@ -58,8 +58,8 @@ class CMSCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array(
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array(
|
||||
'meta_description',
|
||||
'meta_keywords',
|
||||
'meta_title',
|
||||
|
||||
@@ -91,7 +91,7 @@ class CMSCategoryCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
if (isset($this->id))
|
||||
$fields['id_cms_category'] = (int)($this->id);
|
||||
$fields['active'] = (int)($this->active);
|
||||
@@ -110,8 +110,8 @@ class CMSCategoryCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name', 'description', 'link_rewrite', 'meta_title', 'meta_keywords', 'meta_description'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name', 'description', 'link_rewrite', 'meta_title', 'meta_keywords', 'meta_description'));
|
||||
}
|
||||
|
||||
public function add($autodate = true, $nullValues = false)
|
||||
|
||||
+3
-3
@@ -112,7 +112,7 @@ class CarrierCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_tax_rules_group'] = (int)($this->id_tax_rules_group);
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['url'] = pSQL($this->url);
|
||||
@@ -144,8 +144,8 @@ class CarrierCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('delay'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('delay'));
|
||||
}
|
||||
|
||||
public function add($autodate = true, $nullValues = false)
|
||||
|
||||
+1
-1
@@ -125,7 +125,7 @@ class CartCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_group_shop'] = (int)$this->id_group_shop;
|
||||
$fields['id_shop'] = (int)$this->id_shop;
|
||||
|
||||
@@ -119,7 +119,7 @@ class CategoryCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
if (isset($this->id))
|
||||
$fields['id_category'] = (int)($this->id);
|
||||
$fields['active'] = (int)($this->active);
|
||||
@@ -150,8 +150,8 @@ class CategoryCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array(
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array(
|
||||
'name',
|
||||
'description' => array('html' => true),
|
||||
'link_rewrite',
|
||||
|
||||
@@ -95,7 +95,7 @@ class CombinationCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_product'] = (int)($this->id_product);
|
||||
$fields['reference'] = pSQL($this->reference);
|
||||
$fields['supplier_reference'] = pSQL($this->supplier_reference);
|
||||
|
||||
@@ -65,7 +65,7 @@ class ConfigurationCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['id_group_shop'] = $this->id_group_shop;
|
||||
$fields['id_shop'] = $this->id_shop;
|
||||
@@ -84,8 +84,8 @@ class ConfigurationCore extends ObjectModel
|
||||
{
|
||||
if (!is_array($this->value))
|
||||
return true;
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('value'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('value'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -58,7 +58,7 @@ class ConnectionCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_guest'] = (int)($this->id_guest);
|
||||
$fields['id_page'] = (int)($this->id_page);
|
||||
$fields['ip_address'] = (int)($this->ip_address);
|
||||
|
||||
@@ -43,7 +43,7 @@ class ConnectionsSourceCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_connections'] = (int)($this->id_connections);
|
||||
$fields['http_referer'] = pSQL($this->http_referer);
|
||||
$fields['request_uri'] = pSQL($this->request_uri);
|
||||
|
||||
+3
-3
@@ -52,7 +52,7 @@ class ContactCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['email'] = pSQL($this->email);
|
||||
$fields['customer_service'] = (int)($this->customer_service);
|
||||
return $fields;
|
||||
@@ -65,8 +65,8 @@ class ContactCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name', 'description'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name', 'description'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+3
-3
@@ -86,7 +86,7 @@ class CountryCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_zone'] = (int)($this->id_zone);
|
||||
$fields['id_currency'] = (int)($this->id_currency);
|
||||
$fields['iso_code'] = pSQL(strtoupper($this->iso_code));
|
||||
@@ -107,8 +107,8 @@ class CountryCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ class CountyCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_state'] = (int)($this->id_state);
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['active'] = (int)($this->active);
|
||||
|
||||
@@ -107,7 +107,7 @@ class CurrencyCore extends ObjectModel
|
||||
}
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['iso_code'] = pSQL($this->iso_code);
|
||||
|
||||
@@ -134,7 +134,7 @@ class CustomerCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
if (isset($this->id))
|
||||
$fields['id_customer'] = (int)($this->id);
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class CustomerMessageCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_customer_thread'] = (int)($this->id_customer_thread);
|
||||
$fields['id_employee'] = (int)($this->id_employee);
|
||||
$fields['message'] = pSQL($this->message);
|
||||
|
||||
@@ -50,7 +50,7 @@ class CustomerThreadCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_lang'] = (int)($this->id_lang);
|
||||
$fields['id_shop'] = (int)$this->id_shop;
|
||||
$fields['id_contact'] = (int)($this->id_contact);
|
||||
|
||||
@@ -38,7 +38,7 @@ class DateRangeCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['time_start'] = pSQL($this->time_start);
|
||||
$fields['time_end'] = pSQL($this->time_end);
|
||||
return $fields;
|
||||
|
||||
@@ -70,7 +70,7 @@ class DeliveryCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
if ($this->id_shop)
|
||||
$fields['id_shop'] = (int)$this->id_shop;
|
||||
|
||||
@@ -126,7 +126,7 @@ class DiscountCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_customer'] = (int)($this->id_customer);
|
||||
$fields['id_group'] = (int)($this->id_group);
|
||||
@@ -180,9 +180,9 @@ class DiscountCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
if (!parent::validateFieldsLang())
|
||||
if (!$this->validateFieldsLang())
|
||||
return false;
|
||||
return parent::getTranslationsFields(array('description'));
|
||||
return $this->getTranslationsFields(array('description'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -90,7 +90,7 @@ class EmployeeCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_profile'] = (int)$this->id_profile;
|
||||
$fields['id_lang'] = (int)$this->id_lang;
|
||||
|
||||
+2
-2
@@ -55,8 +55,8 @@ class FeatureCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -55,7 +55,7 @@ class FeatureValueCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_feature'] = (int)$this->id_feature;
|
||||
$fields['custom'] = (int)$this->custom;
|
||||
@@ -70,8 +70,8 @@ class FeatureValueCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('value'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('value'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+3
-3
@@ -64,7 +64,7 @@ class GroupCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
if (isset($this->id))
|
||||
$fields['id_group'] = (int)($this->id);
|
||||
$fields['reduction'] = (float)($this->reduction);
|
||||
@@ -77,9 +77,9 @@ class GroupCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
if (!parent::validateFieldsLang())
|
||||
if (!$this->validateFieldsLang())
|
||||
return false;
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public static function getGroups($id_lang)
|
||||
|
||||
@@ -41,7 +41,7 @@ class GroupReductionCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_group'] = (int)($this->id_group);
|
||||
$fields['id_category'] = (int)($this->id_category);
|
||||
$fields['reduction'] = (float)($this->reduction);
|
||||
|
||||
@@ -62,7 +62,7 @@ class GroupShopCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['share_customer'] = (int)$this->share_customer;
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ class GuestCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_operating_system'] = (int)($this->id_operating_system);
|
||||
$fields['id_web_browser'] = (int)($this->id_web_browser);
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ class HookCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['name'] = pSQL($this->name);
|
||||
return $fields;
|
||||
}
|
||||
|
||||
+3
-3
@@ -78,7 +78,7 @@ class ImageCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_product'] = (int)($this->id_product);
|
||||
$fields['position'] = (int)($this->position);
|
||||
$fields['cover'] = (int)($this->cover);
|
||||
@@ -87,8 +87,8 @@ class ImageCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('legend'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('legend'));
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@@ -82,7 +82,7 @@ class ImageTypeCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['width'] = (int)($this->width);
|
||||
$fields['height'] = (int)($this->height);
|
||||
|
||||
@@ -75,7 +75,7 @@ class LanguageCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['iso_code'] = pSQL(strtolower($this->iso_code));
|
||||
$fields['language_code'] = pSQL(strtolower($this->language_code));
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ class LoggerCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['severity'] = intval($this->severity);
|
||||
$fields['error_code'] = intval($this->error_code);
|
||||
|
||||
@@ -99,7 +99,7 @@ class ManufacturerCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
if (isset($this->id))
|
||||
$fields['id_manufacturer'] = (int)($this->id);
|
||||
$fields['name'] = pSQL($this->name);
|
||||
@@ -111,8 +111,8 @@ class ManufacturerCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array(
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array(
|
||||
'meta_description',
|
||||
'meta_keywords',
|
||||
'meta_title',
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ class MessageCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['message'] = pSQL($this->message, true);
|
||||
$fields['id_cart'] = (int)($this->id_cart);
|
||||
|
||||
+3
-3
@@ -48,14 +48,14 @@ class MetaCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
return array('page' => pSQL($this->page));
|
||||
}
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('title', 'description', 'keywords', 'url_rewrite'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('title', 'description', 'keywords', 'url_rewrite'));
|
||||
}
|
||||
|
||||
public static function getPages($excludeFilled = false, $addPage = false)
|
||||
|
||||
+1
-1
@@ -196,7 +196,7 @@ class OrderCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_group_shop'] = (int)$this->id_group_shop;
|
||||
$fields['id_shop'] = (int)$this->id_shop;
|
||||
|
||||
@@ -161,7 +161,7 @@ class OrderDetailCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_order'] = (int)($this->id_order);
|
||||
$fields['product_id'] = (int)($this->product_id);
|
||||
|
||||
@@ -59,7 +59,7 @@ class OrderDiscountCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_order'] = (int)($this->id_order);
|
||||
$fields['name'] = pSQL($this->name);
|
||||
|
||||
@@ -60,7 +60,7 @@ class OrderHistoryCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_order'] = (int)($this->id_order);
|
||||
$fields['id_order_state'] = (int)($this->id_order_state);
|
||||
|
||||
@@ -57,14 +57,14 @@ class OrderMessageCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
return array('date_add' => pSQL($this->date_add));
|
||||
}
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name', 'message'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name', 'message'));
|
||||
}
|
||||
|
||||
public static function getOrderMessages($id_lang)
|
||||
|
||||
@@ -58,7 +58,7 @@ class OrderReturnCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_customer'] = pSQL($this->id_customer);
|
||||
$fields['id_order'] = pSQL($this->id_order);
|
||||
|
||||
@@ -44,7 +44,7 @@ class OrderReturnStateCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['color'] = pSQL($this->color);
|
||||
return $fields;
|
||||
}
|
||||
@@ -56,8 +56,8 @@ class OrderReturnStateCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -58,7 +58,7 @@ class OrderSlipCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_customer'] = (int)($this->id_customer);
|
||||
$fields['id_order'] = (int)($this->id_order);
|
||||
|
||||
@@ -71,7 +71,7 @@ class OrderStateCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['send_email'] = (int)($this->send_email);
|
||||
$fields['invoice'] = (int)($this->invoice);
|
||||
$fields['color'] = pSQL($this->color);
|
||||
@@ -89,8 +89,8 @@ class OrderStateCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name', 'template'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name', 'template'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ class PageCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_page_type'] = (int)($this->id_page_type);
|
||||
$fields['id_object'] = (int)($this->id_object);
|
||||
return $fields;
|
||||
|
||||
@@ -48,7 +48,7 @@ class PaymentCCCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_order'] = (int)($this->id_order);
|
||||
$fields['id_currency'] = (int)($this->id_currency);
|
||||
$fields['amount'] = (float)($this->amount);
|
||||
|
||||
+4
-4
@@ -330,7 +330,7 @@ class ProductCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
if (isset($this->id))
|
||||
$fields['id_product'] = (int)($this->id);
|
||||
$fields['id_tax_rules_group'] = (int)($this->id_tax_rules_group);
|
||||
@@ -391,8 +391,8 @@ class ProductCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array(
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array(
|
||||
'meta_description',
|
||||
'meta_keywords',
|
||||
'meta_title',
|
||||
@@ -549,7 +549,7 @@ class ProductCore extends ObjectModel
|
||||
if ($die) die (Tools::displayError().' ('.get_class($this).'->description: length > '.$limit.' for language '.$k.')');
|
||||
return $errorReturn ? get_class($this).'->'.Tools::displayError('description: length >').' '.$limit.' '.Tools::displayError('for language').' '.$k : false;
|
||||
}
|
||||
return parent::validateFieldsLang($die, $errorReturn);
|
||||
return $this->validateFieldsLang($die, $errorReturn);
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@@ -99,7 +99,7 @@ class ProductDownloadCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_product'] = (int)($this->id_product);
|
||||
$fields['display_filename'] = pSQL($this->display_filename);
|
||||
|
||||
+2
-2
@@ -49,8 +49,8 @@ class ProfileCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,7 +48,7 @@ class QuickAccessCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['link'] = pSQL($this->link);
|
||||
$fields['new_window'] = (int)($this->new_window);
|
||||
return $fields;
|
||||
@@ -61,8 +61,8 @@ class QuickAccessCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -47,7 +47,7 @@ class RangePriceCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_carrier'] = (int)($this->id_carrier);
|
||||
$fields['delimiter1'] = (float)($this->delimiter1);
|
||||
$fields['delimiter2'] = (float)($this->delimiter2);
|
||||
|
||||
@@ -47,7 +47,7 @@ class RangeWeightCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_carrier'] = (int)($this->id_carrier);
|
||||
$fields['delimiter1'] = (float)($this->delimiter1);
|
||||
$fields['delimiter2'] = (float)($this->delimiter2);
|
||||
|
||||
@@ -69,7 +69,7 @@ class ReferrerCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['passwd'] = pSQL($this->passwd);
|
||||
|
||||
+3
-3
@@ -64,7 +64,7 @@ class SceneCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['active'] = (int)($this->active);
|
||||
return $fields;
|
||||
}
|
||||
@@ -76,8 +76,8 @@ class SceneCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public function update($nullValues = false)
|
||||
|
||||
@@ -38,7 +38,7 @@ class SearchEngineCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['server'] = pSQL($this->server);
|
||||
$fields['getvar'] = pSQL($this->getvar);
|
||||
return $fields;
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ class ShopCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_group_shop'] = (int)$this->id_group_shop;
|
||||
$fields['id_category'] = (int)$this->id_category;
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ class ShopUrlCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$this->physical_uri = trim($this->physical_uri, '/');
|
||||
if ($this->physical_uri)
|
||||
|
||||
@@ -50,7 +50,7 @@ class SpecificPriceCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_product'] = (int)($this->id_product);
|
||||
$fields['id_shop'] = (int)($this->id_shop);
|
||||
$fields['id_currency'] = (int)($this->id_currency);
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ class StateCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_country'] = (int)($this->id_country);
|
||||
$fields['id_zone'] = (int)($this->id_zone);
|
||||
$fields['iso_code'] = pSQL(strtoupper($this->iso_code));
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class Stock extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_product'] = (int)$this->id_product;
|
||||
$fields['id_product_attribute'] = (int)$this->id_product_attribute;
|
||||
$fields['id_group_shop'] = (int)$this->id_group_shop;
|
||||
|
||||
@@ -69,7 +69,7 @@ class StockMvtCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_stock'] = (int)$this->id_stock;
|
||||
$fields['id_order'] = (int)$this->id_order;
|
||||
$fields['id_employee'] = (int)$this->id_employee;
|
||||
|
||||
@@ -50,7 +50,7 @@ class StockMvtReasonCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['sign'] = (int)$this->sign;
|
||||
$fields['date_add'] = pSQL($this->date_add);
|
||||
$fields['date_upd'] = pSQL($this->date_upd);
|
||||
@@ -59,8 +59,8 @@ class StockMvtReasonCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public static function getStockMvtReasons($id_lang)
|
||||
|
||||
+1
-1
@@ -97,7 +97,7 @@ class StoreCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_country'] = (int)($this->id_country);
|
||||
$fields['id_state'] = (int)($this->id_state);
|
||||
|
||||
@@ -38,7 +38,7 @@ class SubDomainCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['name'] = pSQL($this->name);
|
||||
return $fields;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ class SupplierCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
if (isset($this->id))
|
||||
$fields['id_supplier'] = (int)($this->id);
|
||||
$fields['name'] = pSQL($this->name);
|
||||
@@ -102,8 +102,8 @@ class SupplierCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('description', 'meta_title', 'meta_keywords', 'meta_description'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('description', 'meta_title', 'meta_keywords', 'meta_description'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+3
-3
@@ -56,7 +56,7 @@ class TabCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_parent'] = (int)($this->id_parent);
|
||||
$fields['class_name'] = pSQL($this->class_name);
|
||||
$fields['module'] = pSQL($this->module);
|
||||
@@ -66,8 +66,8 @@ class TabCore extends ObjectModel
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public function add($autodate = true, $nullValues = false)
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ class TagCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_lang'] = (int)($this->id_lang);
|
||||
$fields['name'] = pSQL($this->name);
|
||||
return $fields;
|
||||
|
||||
+3
-3
@@ -50,7 +50,7 @@ class TaxCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['rate'] = (float)($this->rate);
|
||||
$fields['active'] = (int)($this->active);
|
||||
return $fields;
|
||||
@@ -63,8 +63,8 @@ class TaxCore extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ class TaxRuleCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_tax_rules_group'] = (int)($this->id_tax_rules_group);
|
||||
$fields['id_country'] = (int)$this->id_country;
|
||||
$fields['id_state'] = (int)$this->id_state;
|
||||
|
||||
@@ -44,7 +44,7 @@ class TaxRulesGroupCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['name'] = ($this->name);
|
||||
$fields['active'] = (int)($this->active);
|
||||
return $fields;
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ class ThemeCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['name'] = pSQL($this->name);
|
||||
return $fields;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class WebserviceKeyCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['key'] = pSQL($this->key);
|
||||
$fields['active'] = (int)($this->active);
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class ZoneCore extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['active'] = (int)$this->active;
|
||||
|
||||
@@ -57,7 +57,7 @@ class WishList extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_customer'] = (int)($this->id_customer);
|
||||
$fields['token'] = pSQL($this->token);
|
||||
$fields['name'] = pSQL($this->name);
|
||||
|
||||
@@ -49,7 +49,7 @@ class DejalaCart extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_dejala_product'] = (int)($this->id_dejala_product);
|
||||
$fields['shipping_date'] = pSQL($this->shipping_date);
|
||||
$fields['id_delivery'] = (int)($this->id_delivery);
|
||||
|
||||
@@ -62,7 +62,7 @@ class EditorialClass extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
$this->validateFieldsLang();
|
||||
|
||||
$fieldsArray = array('body_title', 'body_subheading', 'body_paragraph', 'body_logo_subheading');
|
||||
$fields = array();
|
||||
@@ -107,7 +107,7 @@ class EditorialClass extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_editorial'] = (int)($this->id);
|
||||
$fields['body_home_logo_link'] = pSQL($this->body_home_logo_link);
|
||||
return $fields;
|
||||
|
||||
@@ -57,7 +57,7 @@ class FavoriteProduct extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
$fields['id_product'] = (int)$this->id_product;
|
||||
$fields['id_customer'] = (int)$this->id_customer;
|
||||
|
||||
@@ -46,7 +46,7 @@ class LoyaltyModule extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_loyalty_state'] = (int)$this->id_loyalty_state;
|
||||
$fields['id_customer'] = (int)$this->id_customer;
|
||||
$fields['id_order'] = (int)$this->id_order;
|
||||
|
||||
@@ -43,7 +43,7 @@ class LoyaltyStateModule extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_order_state'] = (int)($this->id_order_state);
|
||||
return $fields;
|
||||
}
|
||||
@@ -55,8 +55,8 @@ class LoyaltyStateModule extends ObjectModel
|
||||
*/
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public static function getDefaultId() { return 1; }
|
||||
|
||||
@@ -53,7 +53,7 @@ class MondialRelayClass extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
|
||||
if (isset($this->id_mr_selected))
|
||||
$fields['id_mr_selected'] = (int)($this->id_mr_selected);
|
||||
|
||||
@@ -73,7 +73,7 @@ class ProductComment extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields(false);
|
||||
$this->validateFields(false);
|
||||
$fields['id_product'] = (int)($this->id_product);
|
||||
$fields['id_customer'] = (int)($this->id_customer);
|
||||
$fields['id_guest'] = (int)($this->id_guest);
|
||||
|
||||
@@ -42,14 +42,14 @@ class ProductCommentCriterion extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
return array('id_product_comment_criterion_type' => (int)$this->id_product_comment_criterion_type, 'active' => (int)$this->active);
|
||||
}
|
||||
|
||||
public function getTranslationsFieldsChild()
|
||||
{
|
||||
parent::validateFieldsLang();
|
||||
return parent::getTranslationsFields(array('name'));
|
||||
$this->validateFieldsLang();
|
||||
return $this->getTranslationsFields(array('name'));
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@@ -48,7 +48,7 @@ class ReferralProgramModule extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_sponsor'] = (int)$this->id_sponsor;
|
||||
$fields['email'] = pSQL($this->email);
|
||||
$fields['lastname'] = pSQL($this->lastname);
|
||||
|
||||
@@ -48,7 +48,7 @@ class PaymentCC extends ObjectModel
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$this->validateFields();
|
||||
$fields['id_order'] = (int)($this->file);
|
||||
$fields['id_currency'] = (int)($this->file);
|
||||
$fields['amount'] = (float)($this->amount);
|
||||
|
||||
Reference in New Issue
Block a user