예제 #1
0
 public function __construct($id = null, $id_lang = null, $id_shop = null)
 {
     if (version_compare(_PS_VERSION_, '1.5', '>')) {
         self::$definition = array('table' => 'ebay_profile', 'primary' => 'id_ebay_profile', 'fields' => array('id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), 'ebay_user_identifier' => array('type' => self::TYPE_STRING, 'size' => 255), 'ebay_site_id' => array('type' => self::TYPE_STRING, 'size' => 32), 'id_ebay_returns_policy_configuration' => array('type' => self::TYPE_INT, 'validate' => 'isInt')));
     } else {
         $tables = array('ebay_profile');
         $fieldsRequired = array('id_lang', 'id_shop', 'ebay_user_identifier', 'ebay_site_id', 'id_ebay_returns_policy_configuration');
         $fieldsSize = array('ebay_user_identifier' => 32, 'ebay_site_id' => 32);
         $fieldsValidate = array('id_lang' => 'isUnsignedInt', 'id_shop' => 'isUnsignedInt', 'id_ebay_returns_policy_configuration' => 'isUnsignedInt');
     }
     return parent::__construct($id, $id_lang, $id_shop);
 }