public function getStateAction() { $frontendButtonDisabled = FALSE; if (Plugin::frontendCrawlerRunning() || Plugin::frontendCrawlerScheduledForStart() || !Plugin::frontendConfigComplete()) { $frontendButtonDisabled = TRUE; } $frontendStopButtonDisabled = FALSE; if (!Plugin::frontendConfigComplete() || !Plugin::frontendCrawlerRunning() || Plugin::frontendCrawlerStopLocked()) { $frontendStopButtonDisabled = TRUE; } $this->_helper->json(array('message' => Plugin::getPluginState(), 'frontendButtonDisabled' => $frontendButtonDisabled, 'frontendStopButtonDisabled' => $frontendStopButtonDisabled)); }