Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/public/main/cron/scheduled_announcement.php

14 lines
506 B

<?php
/* For licensing terms, see /license.txt */
require_once __DIR__.'/../inc/global.inc.php';
$urlList = UrlManager::get_url_data();
foreach ($urlList as $url) {
// Set access_url to set correct paths.
$_configuration['access_url'] = $url['id'];
echo "Portal: # ".$url['id']." - ".$url['url'].'-'.api_get_path(WEB_CODE_PATH).PHP_EOL;
$object = new ScheduledAnnouncement();
$messagesSent = $object->sendPendingMessages($url['id']);
echo "Messages sent $messagesSent".PHP_EOL;
}