Пример #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_log', 'primary' => 'id_ebay_log', 'fields' => array('text' => array('type' => self::TYPE_STRING, 'validate' => 'isString'), 'type' => array('type' => self::TYPE_STRING, 'validate' => 'isString')));
     } else {
         $tables = array('ebay_log');
         $fieldsRequired = array('text', 'type', 'date_add');
         $fieldsValidate = array();
     }
     return parent::__construct($id, $id_lang, $id_shop);
 }