Пример #1
0
 /**
  * 	Constructor
  *
  * 	@param 		DoliDB		$db		Database handler
  */
 function __construct($db)
 {
     parent::__construct($db);
     try {
         $this->couchdb->useDatabase('adherent');
         $fk_extrafields = new ExtraFields($db);
         $fk_extrafields->useDatabase('adherent');
         $this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true);
         // load and cache
     } catch (Exception $e) {
         dol_print_error('', $e->getMessage());
         exit;
     }
     return 1;
 }