diff --git a/src/QUI/Cron/Manager.php b/src/QUI/Cron/Manager.php index f247899b31c4d85c14e72ded7735339ad1b1ffdb..58e30c87661f765ef6768205833e8182fb28f17a 100644 --- a/src/QUI/Cron/Manager.php +++ b/src/QUI/Cron/Manager.php @@ -466,6 +466,25 @@ class Manager )); } + /** + * Checks if a specific cron is already set up + * + * @param string $cron - cron title + * @return bool + */ + public function isCronSetUp($cron) + { + $list = $this->getList(); + + foreach ($list as $entry) { + if ($entry['title'] == $cron) { + return true; + } + } + + return false; + } + /** * Exist the cron? * @@ -546,6 +565,7 @@ class Manager if ($Title->length) { $title = QUI\Utils\DOM::getTextFromNode($Title->item(0)); + \QUI\System\Log::writeRecursive($title); } if ($Desc->length) {