Skip to content

Commit

Permalink
Removal ob conlist::getCrons and corons/getList-event
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan committed Oct 26, 2019
1 parent 8381b0f commit 5e125ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
24 changes: 0 additions & 24 deletions inc/events/cron/getList.php

This file was deleted.

25 changes: 0 additions & 25 deletions inc/model/crons/cronlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,31 +108,6 @@ public function registerCronAjax(\fpcm\model\abstracts\cron $cron)
return true;
}

/**
* Cron-Klassen-Liste
* @return array
*/
public function getCrons()
{
$cronFiles = glob(\fpcm\classes\dirs::getIncDirPath('model' . DIRECTORY_SEPARATOR . 'crons' . DIRECTORY_SEPARATOR . '*.php'));

if (!is_array($cronFiles)) {
return [];
}

$crons = [];
foreach ($cronFiles as $cronFile) {

if ($cronFile == __FILE__) {
continue;
}

$crons[] = basename($cronFile, '.php');
}

return $this->events->trigger('cron\getList', $crons);
}

/**
* Liefert Liste von Cronjobs, deren letzte Ausführung + Interval <= aktuellen Zeit ist
* @return array
Expand Down

0 comments on commit 5e125ec

Please sign in to comment.