getConfig()->get('frontend', 'disabled', 'no') !== 'yes') { $this->provideHook('monitoring/HostActions'); $this->provideHook('monitoring/ServiceActions'); $this->provideHook('icingadb/HostActions'); $this->provideHook('icingadb/ServiceActions'); $this->provideHook('icingadb/icingadbSupport'); $this->provideHook('cube/Actions', CubeLinks::class); $this->provideHook('cube/IcingaDbActions', IcingaDbCubeLinks::class); } $directorHooks = [ 'director/DataType' => [ DataTypeArray::class, DataTypeBoolean::class, DataTypeDatalist::class, DataTypeDictionary::class, DataTypeNumber::class, DataTypeDirectorObject::class, DataTypeSqlQuery::class, DataTypeString::class ], 'director/ImportSource' => [ ImportSourceDirectorObject::class, ImportSourceSql::class, ImportSourceLdap::class, ImportSourceCoreApi::class, ImportSourceRestApi::class ], 'director/Job' => [ ConfigJob::class, HousekeepingJob::class, ImportJob::class, SyncJob::class, ], 'director/PropertyModifier' => [ PropertyModifierArrayElementByPosition::class, PropertyModifierArrayFilter::class, PropertyModifierArrayToRow::class, PropertyModifierArrayUnique::class, PropertyModifierBitmask::class, PropertyModifierCombine::class, PropertyModifierDictionaryToRow::class, PropertyModifierDnsRecords::class, PropertyModifierExtractFromDN::class, PropertyModifierFromAdSid::class, PropertyModifierFromLatin1::class, PropertyModifierGetHostByAddr::class, PropertyModifierGetHostByName::class, PropertyModifierGetPropertyFromOtherImportSource::class, PropertyModifierJoin::class, PropertyModifierJsonDecode::class, PropertyModifierLConfCustomVar::class, PropertyModifierListToObject::class, PropertyModifierLowercase::class, PropertyModifierMakeBoolean::class, PropertyModifierMap::class, PropertyModifierNegateBoolean::class, PropertyModifierParseURL::class, PropertyModifierRegexReplace::class, PropertyModifierRegexSplit::class, PropertyModifierRejectOrSelect::class, PropertyModifierRenameColumn::class, PropertyModifierReplace::class, PropertyModifierReplaceNull::class, PropertyModifierSimpleGroupBy::class, PropertyModifierSkipDuplicates::class, PropertyModifierSplit::class, PropertyModifierStripDomain::class, PropertyModifierSubstring::class, PropertyModifierToInt::class, PropertyModifierTrim::class, PropertyModifierUppercase::class, PropertyModifierUpperCaseFirst::class, PropertyModifierURLEncode::class, PropertyModifierUuidBinToHex::class, PropertyModifierXlsNumericIp::class, ] ]; foreach ($directorHooks as $type => $classNames) { foreach ($classNames as $className) { $this->provideHook($type, $className); } }