Exemplo n.º 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_store_category', 'primary' => 'id_ebay_store_category', 'fields' => array('id_ebay_profile' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), 'ebay_category_id' => array('type' => self::TYPE_STRING, 'validate' => 'isString'), 'name' => array('type' => self::TYPE_STRING, 'validate' => 'isString'), 'order' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), 'ebay_parent_category_id' => array('type' => self::TYPE_STRING, 'validate' => 'isString')));
     } else {
         $tables = array('ebay_store_category');
         $fieldsRequired = array('id_ebay_profile', 'ebay_category_id', 'name', 'order');
         $fieldsValidate = array();
     }
     return parent::__construct($id, $id_lang, $id_shop);
 }