|
|
|
File Attachments:
|
1.
cron.php (9 kB)
2.
mrbsimportdiff.txt (12 kB)
3.
mrbsimportdiff.txt (11 kB)
|
|
Environment:
|
Should be universal
|
|
Issue Links:
|
Relates
|
|
This issue has a non-specific relationship to:
|
|
CONTRIB-924
A script that does 3 main things: Creates tutor/tutee links, Creates metacourse links and imports attendance data
|
|
|
|
|
CONTRIB-1191
Change to allow the display of simultanious bookings in the same room
|
|
|
|
|
|
This issue has been marked as being related by:
|
|
CONTRIB-1359
Prevent clash notification emails sending multiple times
|
|
|
|
|
|
|
| Participants: |
Anthony Borrow and Mike Worth
|
| Security Level: |
None
|
| Resolved date: |
01/Jun/09
|
| Affected Branches: |
MOODLE_19_STABLE
|
|
A script that, on cron, checks a configurable location for a csv file detailing room bookings and updates mrbs.
Currently has the period times for my college hardcoded, these need removing but I'm not entirely sure the best way to do this (maybe the conversion would be best done with a complicated query when they are got out of the MIS?)
This cron.php file is to go in blocks/mrbs.
Then by adding :
" $this->cron=300;"
to the blocks init() and the function:
" function cron(){
global $CFG;
include($CFG->dirroot.'/blocks/mrbs/cron.php');
}"
to the mrbs_block class it is run by moodle's cronjob.
I've also added:
"$settings->add(new admin_setting_configtext('cronfile', get_string('cronfile', 'block_mrbs'),get_string('cronfiledesc', 'block_mrbs'), NULL, PARAM_TEXT));
$settings->settings->cronfile->plugin='block/mrbs';"
to the bottom of mrbs/settings.php so that the location of the csv file can be specified.
|
|
Description
|
A script that, on cron, checks a configurable location for a csv file detailing room bookings and updates mrbs.
Currently has the period times for my college hardcoded, these need removing but I'm not entirely sure the best way to do this (maybe the conversion would be best done with a complicated query when they are got out of the MIS?)
This cron.php file is to go in blocks/mrbs.
Then by adding :
" $this->cron=300;"
to the blocks init() and the function:
" function cron(){
global $CFG;
include($CFG->dirroot.'/blocks/mrbs/cron.php');
}"
to the mrbs_block class it is run by moodle's cronjob.
I've also added:
"$settings->add(new admin_setting_configtext('cronfile', get_string('cronfile', 'block_mrbs'),get_string('cronfiledesc', 'block_mrbs'), NULL, PARAM_TEXT));
$settings->settings->cronfile->plugin='block/mrbs';"
to the bottom of mrbs/settings.php so that the location of the csv file can be specified.
|
Show » |
made changes - 21/Apr/09 04:50 PM
| Field |
Original Value |
New Value |
|
Link
|
|
This issue blocks CONTRIB-924
[ CONTRIB-924
]
|
made changes - 21/Apr/09 04:51 PM
|
Link
|
|
This issue has a non-specific relationship to CONTRIB-924
[ CONTRIB-924
]
|
made changes - 21/Apr/09 05:34 PM
|
Description
|
A script that, on cron, checks a configurable location for a csv file detailing room bookings and updates mrbs.
Currently has the period times for my college hardcoded, these need removing but I'm not entirely sure the best way to do this (maybe the conversion would be best done with a complicated query when they are got out of the MIS?)
This cron.php file is to go in blocks/mrbs.
Then by adding :
" $this->cron=300;" to the blocks init() and the function " function cron(){
global $CFG;
include($CFG->dirroot.'/blocks/mrbs/cron.php');
}"
to the mrbs_block class it is run by moodle's cronjob.
I've also added:
"$settings->add(new admin_setting_configtext('cronfile', get_string('cronfile', 'block_mrbs'),get_string('cronfiledesc', 'block_mrbs'), NULL, PARAM_TEXT));
$settings->settings->cronfile->plugin='block/mrbs';"
to the bottom of mrbs/settings.php so that the location of the csv file can be specified.
|
A script that, on cron, checks a configurable location for a csv file detailing room bookings and updates mrbs.
Currently has the period times for my college hardcoded, these need removing but I'm not entirely sure the best way to do this (maybe the conversion would be best done with a complicated query when they are got out of the MIS?)
This cron.php file is to go in blocks/mrbs.
Then by adding :
" $this->cron=300;"
to the blocks init() and the function:
" function cron(){
global $CFG;
include($CFG->dirroot.'/blocks/mrbs/cron.php');
}"
to the mrbs_block class it is run by moodle's cronjob.
I've also added:
"$settings->add(new admin_setting_configtext('cronfile', get_string('cronfile', 'block_mrbs'),get_string('cronfiledesc', 'block_mrbs'), NULL, PARAM_TEXT));
$settings->settings->cronfile->plugin='block/mrbs';"
to the bottom of mrbs/settings.php so that the location of the csv file can be specified.
|
made changes - 23/Apr/09 01:57 AM
|
Assignee
|
Anthony Borrow
[ aborrow
]
|
Mike Worth
[ mike1989
]
|
made changes - 01/Jun/09 11:05 PM
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
|