/**
* Returns the database schema status.
*
* This method is usuall called once the user logs in, and alerts him if the schema is not up-to-date.
*
* Returns either status incomplete if the schema is not up-to-date, or complete if everything is OK.
*/
public function getSystemStatus()
{
if ($this->container->getParameter("partkeepr.cronjob_check")) {
$inactiveCronjobs = $this->cronLoggerService->getInactiveCronjobs($this->container->getParameter("partkeepr.required_cronjobs"));
} else {
// Skip cronjob tests
$inactiveCronjobs = array();
}
return array("inactiveCronjobCount" => count($inactiveCronjobs), "inactiveCronjobs" => $inactiveCronjobs, "schemaStatus" => $this->getSchemaStatus());
}