public function __construct()
 {
     parent::__construct();
     $this->config_model();
     include_spip('functions/pdk_common');
     $this->rub_cur_mdl = pdk_load_class('RubriqueCurrencyModel', 'classes');
     $this->rub_mdl = pdk_load_class('PdkRubriqueModel', 'classes/models');
     $this->art_mdl = pdk_load_class('PdkArticleModel', 'classes/models');
     include_spip('classes/class.EcatalogueException');
     $this->config_currencies();
     $this->price_precision = lire_config('ecatalogue/price_pricision');
     if (!$this->price_precision) {
         $this->price_precision = 2;
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->config_model();
 }
 /**
  *  Override parent function
  */
 public function insert($data)
 {
     // If id_equipment doesn't exist, do auto increment
     if (!isset($data['id_equipment'])) {
         $data['id_equipment'] = $this->GetMaxIdEquipment() + 1;
     }
     return parent::insert($data);
 }