'HealthChecks', 'enabled' => true, 'image' => 'plugins/images/tabs/healthchecks.png', 'category' => 'Monitor', 'settingsArray' => __FUNCTION__ ]; if ($infoOnly) { return $homepageInformation; } $homepageSettings = [ 'docs' => $this->docs('features/homepage/healthchecks-homepage-item'), 'debug' => true, 'settings' => [ 'Enable' => [ $this->settingsOption('enable', 'homepageHealthChecksEnabled'), $this->settingsOption('auth', 'homepageHealthChecksAuth'), ], 'Connection' => [ $this->settingsOption('url', 'healthChecksURL'), $this->settingsOption('multiple-token', 'healthChecksToken'), $this->settingsOption('disable-cert-check', 'healthChecksDisableCertCheck'), $this->settingsOption('use-custom-certificate', 'healthChecksUseCustomCertificate'), ], 'Misc Options' => [ $this->settingsOption('multiple', 'healthChecksTags', ['label' => 'Tags', 'help' => 'Pull only checks with this tag - Blank for all', 'placeholder' => 'Multiple tags using CSV - tag1,tag2']), $this->settingsOption('refresh', 'homepageHealthChecksRefresh'), $this->settingsOption('switch', 'homepageHealthChecksShowDesc', ['label' => 'Show Description']), $this->settingsOption('switch', 'homepageHealthChecksShowTags', ['label' => 'Show Tags']), ], ] ]; return array_merge($homepageInformation, $homepageSettings); } public function healthChecksHomepagePermissions($key = null) { $permissions = [ 'main' => [ 'enabled' => [ 'homepageHealthChecksEnabled' ], 'auth' => [ 'homepageHealthChecksAuth' ], 'not_empty' => [ 'healthChecksURL', 'healthChecksToken' ] ] ]; return $this->homepageCheckKeyPermissions($key, $permissions); } public function homepageOrderhealthchecks() { if ($this->homepageItemPermissions($this->healthChecksHomepagePermissions('main'))) { return '