/** * Constructor * * @param DoliDB $db Database handler */ function ExtraFields($db) { global $conf; $this->db = $db; $this->error = array(); parent::__construct($db); return 1; }
/** * Constructor de la classe * * @param DoliDb $db Database handler */ function __construct($db) { $this->db = $db; parent::__construct($db); $fk_extrafields = new ExtraFields($db); $this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true); // load and cache $this->couchAdmin = new couchAdmin($this->couchdb); return 0; }
function __construct($db) { global $couch; parent::__construct($db); try { $this->global = $couch->getDoc("const"); } catch (Exception $e) { dol_print_error('', "Error : no const document in database" . $e->getMessage()); } $fk_extrafields = new ExtraFields($db); $this->fk_extrafields = $fk_extrafields->load("extrafields:DolibarrModules", true); // load and cache }
/** * Constructor * * @param DoliDb $db Database handler */ function __construct($db) { global $conf; parent::__construct($db); $tabMenu = array(); $topmenu = $this->getView("list", array(), true); $submenu = $this->getView("submenu", array(), true); $this->topmenu = $topmenu->rows; // Construct submenu foreach ($submenu->rows as $key => $aRow) { $this->submenu[$aRow->key[0]][] = $aRow->value; } return 1; }
/** * Constructor * * @param Client $db Database handler */ public function __construct($db) { parent::__construct($db); try { $fk_extrafields = new ExtraFields($db); $this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true); // load and cache $this->fk_country = $this->couchdb->getDoc("dict:fk_country"); //load country table } catch (Exception $e) { $error = "Something weird happened: " . $e->getMessage() . " (errcode=" . $e->getCode() . ")\n"; print $error; exit; } return 1; }
/** * Constructor de la classe * * @param DoliDb $db Database handler */ function __construct($db) { $this->db = $db; parent::__construct($db); }
/** * Constructor de la classe * * @param DoliDb $db Database handler */ function __construct($db) { $this->db = $db; parent::__construct($db); $fk_extrafields = new ExtraFields($db); try { $this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true); // load and cache } catch (Exception $e) { } $this->couchAdmin = new couchAdmin($this->couchdb); $this->useDatabase("_users"); // Preference utilisateur $this->liste_limit = 0; $this->clicktodial_loaded = 0; $this->all_permissions_are_loaded = 0; $this->admin = 0; $this->conf = (object) array(); $this->rights = (object) array(); $this->rights->user = (object) array(); $this->rights->user->user = (object) array(); $this->rights->user->self = (object) array(); }
/** * Constructor * * @param DoliDB $db Database handler */ function __construct($db) { parent::__construct($db); try { $fk_extrafields = new ExtraFields($db); $this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true); // load and cache } catch (Exception $e) { dol_print_error('', $e->getMessage()); exit; } $this->Status = 0; // l'adherent n'est pas public par defaut $this->public = 0; // les champs optionnels sont vides $this->array_options = array(); return 1; }