original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Function check cron job
docstring_tokens: Function check cron job