public function checkCronExt( )
    {
        $result = 0;                                    // kein Cron
        $objDB = \Database::getInstance();

        if( $objDB->tableExists('tl_crontab') ) {
            $result = 1;                                // Cron vorhanden, kein Job

            $objJob = $objDB->execute("SELECT * FROM tl_crontab WHERE job='system/modules/BackupDB/public/AutoBackupDB.php' LIMIT 1");
            if( $objJob->next() ) {                     // IF( Job vorhanden )
                $result = $objJob->enabled ? 3 : 2;     //   Job AKTIV(3) oder Job INAKTIV(2)
            }
        }
        return $result;
    }
public function checkCronExt( )
    {
        $result = 0;                                    // kein Cron
        $objDB = \Database::getInstance();

        if( $objDB->tableExists('tl_crontab') ) {
            $result = 1;                                // Cron vorhanden, kein Job

            $objJob = $objDB->execute("SELECT * FROM tl_crontab WHERE job='system/modules/BackupDB/public/AutoBackupDB.php' LIMIT 1");
            if( $objJob->next() ) {                     // IF( Job vorhanden )
                $result = $objJob->enabled ? 3 : 2;     //   Job AKTIV(3) oder Job INAKTIV(2)
            }
        }
        return $result;
    }
public function checkCronExt ( ) { $ result = 0 ; // kein Cron $ objDB = \ Database :: getInstance ( ) ; if ( $ objDB -> tableExists ( 'tl_crontab' ) ) { $ result = 1 ; // Cron vorhanden, kein Job $ objJob = $ objDB -> execute ( "SELECT * FROM tl_crontab WHERE job='system/modules/BackupDB/public/AutoBackupDB.php' LIMIT 1" ) ; if ( $ objJob -> next ( ) ) { // IF( Job vorhanden ) $ result = $ objJob -> enabled ? 3 : 2 ; //   Job AKTIV(3) oder Job INAKTIV(2) } } return $ result ; }
Function check cron job
Function check cron job