* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class auto_mark extends \core\task\scheduled_task {
+ /**
+ * Returns localised general event name.
+ *
+ * @return string
+ */
public function get_name() {
// Shown in admin screens.
return get_string('automarktask', 'mod_attendance');
}
+
+ /**
+ * Execte the task.
+ */
public function execute() {
global $DB;
// Create some cache vars - might be nice to restructure this and make a smaller number of sql calls.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class notify extends \core\task\scheduled_task {
+ /**
+ * Returns localised general event name.
+ *
+ * @return string
+ */
public function get_name() {
// Shown in admin screens.
return get_string('notifytask', 'mod_attendance');
}
+
+ /**
+ * Execute the task.
+ */
public function execute() {
global $DB;
if (empty(get_config('attendance', 'enablewarnings'))) {
/**
* Get session data for form.
* @param stdClass $formdata moodleform - attendance form.
- * $param mod_attendance_structure $att - used to get attendance level subnet.
+ * @param mod_attendance_structure $att - used to get attendance level subnet.
* @return array.
*/
function attendance_construct_sessions_data_for_add($formdata, mod_attendance_structure $att) {
* Generates a list of users flagged absent.
*
* @param array $courseids optional list of courses to return
+ * @param string $orderby how to order results.
* @param bool $allfornotify get notification list for scheduled task.
* @return stdClass
*/
* Use {@link core_renderer::help_icon()} or {@link addHelpButton()} to display
* the help icon.
*
- * @copyright 2002 onwards Martin Dougiamas
- * @package core
+ * @copyright 2017 Dan Marsden
+ * @package mod_attendance
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
* Use {@link core_renderer::help_icon()} or {@link addHelpButton()} to display
* the help icon.
*
- * @copyright 2002 onwards Martin Dougiamas
- * @package core
+ * @copyright 2017 Dan Marsden
+ * @package mod_attendance
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('AJAX_SCRIPT', true);
/**
* Data structure representing an attendance password icon.
- * copied from help_icon class
*
* @copyright 2017 Dan Marsden
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @param string $identifier string for help page title,
* string with _help suffix is used for the actual help text.
* string with _link suffix is used to create a link to further info (if it exists)
- * @param string $component
+ * @param string $sessionid
*/
public function __construct($text, $sessionid) {
$this->text = $text;
/**
* Implementation of user image rendering.
*
- * @param help_icon $helpicon A help icon instance
+ * @param attendance_password_icon $helpicon A help icon instance
* @return string HTML fragment
*/
protected function render_attendance_password_icon(attendance_password_icon $helpicon) {