function init() { parent::init(); $oContentField = new AnwContentFieldSettings_radio(self::FIELD_STORAGE); $asEnumValues = AnwStorageDriver::getAvailableComponents(AnwComponent::TYPE_STORAGEDRIVER); $oContentField->setEnumValuesFromList($asEnumValues); $oContentField->setMandatory(true); $this->addContentField($oContentField); $oContentField = new AnwContentFieldSettings_radio(self::FIELD_SESSIONS); $asEnumValues = AnwSessionsDriver::getAvailableComponents(AnwComponent::TYPE_SESSIONSDRIVER); $oContentField->setEnumValuesFromList($asEnumValues); $oContentField->setMandatory(true); $this->addContentField($oContentField); $oContentField = new AnwContentFieldSettings_radio(self::FIELD_USERS); $asEnumValues = AnwUsersDriver::getAvailableComponents(AnwComponent::TYPE_USERSDRIVER); $oContentField->setEnumValuesFromList($asEnumValues); $oContentField->setMandatory(true); $this->addContentField($oContentField); $oContentField = new AnwContentFieldSettings_radio(self::FIELD_ACLS); $asEnumValues = AnwAclsDriver::getAvailableComponents(AnwComponent::TYPE_ACLSDRIVER); $oContentField->setEnumValuesFromList($asEnumValues); $oContentField->setMandatory(true); $this->addContentField($oContentField); }
/** * @throws AnwUnexpectedException */ static function loadDriver() { AnwDebug::startbench("Users driver init"); self::$oDriver = AnwUsersDriver::loadComponent(AnwComponent::globalCfgDriverUsers()); if (self::isDriverInternal()) { self::debug("Users Driver loaded : internal"); } else { if (self::isDriverExternal()) { self::debug("Users Driver loaded : external"); } else { throw new AnwUnexpectedException("Unknown usersdriver type"); } } AnwDebug::stopbench("Users driver init"); }