function __construct(&$config, $dn = NULL, $object = NULL) { #definition des variables $attributesInfo = self::getAttributesInfo(); /* Languages */ $languages = get_languages(TRUE); asort($languages); $languages = array_merge(array("" => _("Automatic")), $languages); $attributesInfo['look_n_feel']['attrs'][0]->setChoices(array_keys($languages), array_values($languages)); /* Timezones */ $attributesInfo['look_n_feel']['attrs'][2]->setChoices(timezone::_get_tz_zones()); /* Password methods */ $methods = passwordMethod::get_available_methods(); $methods = $methods['name']; $attributesInfo['password']['attrs'][0]->setChoices($methods); parent::__construct($config, $dn, $object, $attributesInfo); $this->fusionConfigMd5 = md5_file(CACHE_DIR . "/" . CLASS_CACHE); $this->attributesAccess['fdEnableSnapshots']->setManagedAttributes(array('disable' => array(FALSE => array('fdSnapshotBase')))); $this->attributesAccess['fdForceSSL']->setManagedAttributes(array('disable' => array(TRUE => array('fdWarnSSL')))); $this->attributesAccess['fdIdAllocationMethod']->setManagedAttributes(array('erase' => array('traditional' => array('fdUidNumberPoolMin', 'fdUidNumberPoolMax', 'fdGidNumberPoolMin', 'fdGidNumberPoolMax')))); }