public function __construct($id_menu = NULL, $id_lang = NULL, $id_shop = null) { if (version_compare(_PS_VERSION_, '1.3.0.0', '<')) { $this->fieldsValidateLang['value_over'] = 'isCleanHTML'; $this->fieldsValidateLang['value_under'] = 'isCleanHTML'; } else { $this->fieldsValidateLang['value_over'] = 'isString'; $this->fieldsValidateLang['value_under'] = 'isString'; } //Compatibility 1.5 if (version_compare(_PS_VERSION_, '1.5.0.0', '>=')) { if (version_compare(_PS_VERSION_, '1.5', '>=') && version_compare(_PS_VERSION_, '1.5.2.0', '<=') && class_exists("ShopPrestaModule")) { ShopPrestaModule::PrestaModule_setAssoTable(self::$definition['table']); } else { Shop::addTableAssociation(self::$definition['table'], array('type' => 'shop')); } parent::__construct($id_menu, $id_lang, $id_shop); } else { parent::__construct($id_menu, $id_lang); } }
public function __construct($id_search = NULL, $id_lang = NULL, $id_shop = null) { if (version_compare(_PS_VERSION_, '1.5.0.0', '>=')) { if (version_compare(_PS_VERSION_, '1.5', '>=') && version_compare(_PS_VERSION_, '1.5.2.0', '<=') && class_exists("ShopPrestaModule")) { ShopPrestaModule::PrestaModule_setAssoTable(self::$definition['table']); } else { Shop::addTableAssociation(self::$definition['table'], array('type' => 'shop')); } parent::__construct($id_search, $id_lang, $id_shop); } else { parent::__construct($id_search, $id_lang); } }