Commit graph

35 commits

Author SHA1 Message Date
Johannes Meyer
a7e76f6f44 Try even harder to not fail badly if some results are missing 2024-07-24 17:01:07 +02:00
Johannes Meyer
2a9c06e7f6 Some more fixes to make phpstan happy 2024-03-14 15:22:05 +01:00
Sukhwinder Dhillon
2365d6e64b ConpatObject: Fix method name case 2023-09-05 14:26:43 +02:00
Johannes Meyer
d83719e5ba CompatObject: Implement missing fetch methods and ..
.. fix `_host_` cv access on service objects.

fixes #592
2022-08-17 15:34:03 +02:00
Yonas Habteab
aefd0e1f7d Add PHP 7 argument & return type declarations to all member methods 2021-11-03 16:06:59 +01:00
Yonas Habteab
d6801b5fb2 CompatObject: Fix call to undefined method unflattenVars() 2021-10-01 15:30:06 +02:00
Johannes Meyer
c1a289b23b ObjectDetail: Fetch vars from customvar_flat instead of customvar
This is a preparation for the custom variable restrictions
as they're supposed to be applied on the query.
2021-03-11 16:37:37 +01:00
Johannes Meyer
823e91f70e CompatObject: Extend isset() to also check for legacy vars 2020-04-06 16:39:57 +02:00
Johannes Meyer
5db9560c43 CompatObject: Only follow paths as long as possible 2020-04-06 16:39:30 +02:00
Johannes Meyer
bef45745f0 CompatObject: Don't use isset to check for legacy vars
Some are set to `null`
2020-04-06 16:38:33 +02:00
Johannes Meyer
e0436dba68 CompatObject: Override method fetch()
Might be called implicitly on several occasions
2020-04-06 16:37:30 +02:00
Johannes Meyer
2f96fbdcc2 CompatObject: Drop redundant methods getActionUrls() and getNotesUrls() 2020-04-06 16:20:11 +02:00
Johannes Meyer
222afbd48d CompatObject: Provide non-obscured vars if accessed by _<type>_<name> 2020-04-06 16:09:41 +02:00
Johannes Meyer
3dba3b7822 CompatObject: Add method getBoolType() 2020-04-06 15:55:25 +02:00
Johannes Meyer
ab53b45bcd CompatObject: Drop property $defaultLegacyColumns 2020-04-06 15:52:09 +02:00
Johannes Meyer
522e6f35db CompatObject: Add support for value transformation 2020-04-06 15:51:19 +02:00
Johannes Meyer
60434fe15b CompatObject: Handle dynamic property access more like the MonitoredObject 2020-04-03 15:08:19 +02:00
Johannes Meyer
2f23a60219 CompatObject: Support custom variable access using _<type>_ 2020-04-02 16:55:58 +02:00
Johannes Meyer
fec9090dbb CompatObject: Simplify method fetchCustomvars() 2020-04-02 16:54:52 +02:00
Johannes Meyer
59bb39562a CompatObject: Support accessing property $customvars directly
Some modules don't call method `fetchCustomvars()` themselves
(which is fine) and fail without this
2020-04-02 15:53:22 +02:00
Johannes Meyer
084e5a086f CompatObject: Respect security config when fetching customvars 2020-04-02 13:21:28 +02:00
Johannes Meyer
569b544c0c compat: Ensure compatibility with the map module by @nbuchwitz
fixes #37
2020-04-02 11:29:28 +02:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Johannes Meyer
77d7c97e8a CompatObject: Separate function based import by an empty line 2020-01-17 16:02:40 +01:00
Eric Lippmann
a859d83300 Compat: Let Host and Service extend its monitoring module equivalent
This is needed where classes, e.g. hooks require instances of Host or
Service from the monitoring module.
2020-01-08 09:29:35 +01:00
Eric Lippmann
fa727f0966 Remove useless class docs from compat classes 2020-01-08 09:29:35 +01:00
Eric Lippmann
6f811a23a4 Move CompatObject::__get() 2020-01-08 09:29:35 +01:00
Eric Lippmann
76b7a0d23f Move CompatObject::__isset() 2020-01-08 09:29:35 +01:00
Eric Lippmann
ca6274a64c Move CompactObject::getDataView() 2020-01-08 09:29:35 +01:00
Eric Lippmann
a959dbf9b8 Implement CompatObject::getNotesUrls() 2020-01-08 09:29:35 +01:00
Eric Lippmann
f07bcc3fda Add CompatObject::getActionUrls() 2020-01-08 09:29:35 +01:00
Eric Lippmann
698a1ee359 Add factory CompatObject::fromModel() 2020-01-08 09:29:35 +01:00
Eric Lippmann
b068dfcab0 Make CompatObject abstract 2020-01-08 09:29:35 +01:00
Eric Lippmann
77b4930098 Rename to Icingadb 2019-11-05 01:07:30 +01:00
Eric Lippmann
10f58fb4a0 Rename library/Eagle to library/Icingadb 2019-11-05 01:06:28 +01:00
Renamed from library/Eagle/Compat/CompatObject.php (Browse further)