moodle-mod_attendance.git
7 years agoFixes #223 allow student attendance to be disabled at site-level MOODLE_29_STABLE
Dan Marsden [Mon, 26 Sep 2016 22:25:34 +0000 (11:25 +1300)] 
Fixes #223 allow student attendance to be disabled at site-level

7 years agoremove php7 check from 2.9 branch
Dan Marsden [Fri, 1 Jul 2016 01:55:25 +0000 (13:55 +1200)] 
remove php7 check from 2.9 branch

7 years agoupdate travis check with correct branches
Dan Marsden [Fri, 1 Jul 2016 01:50:29 +0000 (13:50 +1200)] 
update travis check with correct branches

8 years agobump version for plugins db release
Dan Marsden [Mon, 4 Apr 2016 07:40:33 +0000 (19:40 +1200)] 
bump version for plugins db release

8 years agoCheck group data exists before using group name.
Dan Marsden [Mon, 4 Apr 2016 07:05:53 +0000 (19:05 +1200)] 
Check group data exists before using group name.

8 years agoTidy up messages when a group associated with a group session has been deleted.
Dan Marsden [Mon, 4 Apr 2016 03:42:14 +0000 (15:42 +1200)] 
Tidy up messages when a group associated with a group session has been deleted.

8 years agoCoding guideline fix
Dan Marsden [Wed, 16 Mar 2016 09:18:26 +0000 (22:18 +1300)] 
Coding guideline fix

8 years agoFixes #176 Generate correct timestamp including DST changes.
Dan Marsden [Wed, 16 Mar 2016 09:17:01 +0000 (22:17 +1300)] 
Fixes #176 Generate correct timestamp including DST changes.

8 years agoFixes #108 add no-overflow div to take attendance page
Dan Marsden [Wed, 16 Mar 2016 07:22:47 +0000 (20:22 +1300)] 
Fixes #108 add no-overflow div to take attendance page

copies the same handling as assignment grading table.

8 years agoFixes #51 Support for scales
Dan Marsden [Wed, 16 Mar 2016 06:52:11 +0000 (19:52 +1300)] 
Fixes #51 Support for scales

Thanks to Greg (cedict) for the original patch.

8 years agoMove local function into locallib.php
Dan Marsden [Wed, 16 Mar 2016 02:34:07 +0000 (15:34 +1300)] 
Move local function into locallib.php

8 years agoRemove old function that is never called.
Dan Marsden [Wed, 16 Mar 2016 02:30:13 +0000 (15:30 +1300)] 
Remove old function that is never called.

8 years agoFix some phpdocs
Dan Marsden [Wed, 16 Mar 2016 02:29:21 +0000 (15:29 +1300)] 
Fix some phpdocs

8 years agoUse correct prefix on function names.
Dan Marsden [Wed, 16 Mar 2016 02:21:50 +0000 (15:21 +1300)] 
Use correct prefix on function names.

8 years agoConvert locallib.php classes into proper auto-loading classes
Dan Marsden [Wed, 16 Mar 2016 02:06:01 +0000 (15:06 +1300)] 
Convert locallib.php classes into proper auto-loading classes

8 years agoMove attendance class into proper class
Dan Marsden [Wed, 16 Mar 2016 01:12:47 +0000 (14:12 +1300)] 
Move attendance class into proper class

also adjust attendance grading function to pass full attendance class
to minimse db calls.

8 years agoBump version in preparation for plugins db release
Dan Marsden [Tue, 15 Mar 2016 01:00:12 +0000 (14:00 +1300)] 
Bump version in preparation for plugins db release

8 years agoFix typo in filename
Dan Marsden [Mon, 14 Mar 2016 23:42:08 +0000 (12:42 +1300)] 
Fix typo in filename

8 years agoTidy up a bit.
Dan Marsden [Mon, 14 Mar 2016 23:19:47 +0000 (12:19 +1300)] 
Tidy up a bit.

remove old att_log_convert_url functoin
use record_exists instead of weird count
add some phpdocs
rename some att functions to correct prefix

8 years agomove date_selector into function to prevent copypaste detector error
Dan Marsden [Mon, 14 Mar 2016 23:09:15 +0000 (12:09 +1300)] 
move date_selector into function to prevent copypaste detector error

8 years agoupdate travis config
Dan Marsden [Mon, 14 Mar 2016 23:01:12 +0000 (12:01 +1300)] 
update travis config

8 years agoFix behat tests
Dan Marsden [Mon, 14 Mar 2016 22:38:40 +0000 (11:38 +1300)] 
Fix behat tests

8 years agoBehat fixes
Dan Marsden [Mon, 14 Mar 2016 22:19:35 +0000 (11:19 +1300)] 
Behat fixes

8 years agoCoding guideline/behat fixes
Dan Marsden [Mon, 14 Mar 2016 21:55:58 +0000 (10:55 +1300)] 
Coding guideline/behat fixes

8 years agoFix behat/coding guideline issues.
Dan Marsden [Mon, 14 Mar 2016 21:25:20 +0000 (10:25 +1300)] 
Fix behat/coding guideline issues.

8 years agoChanging the add and update session interfaces
antonio.c.mariani [Sun, 4 Oct 2015 13:13:12 +0000 (10:13 -0300)] 
Changing the add and update session interfaces

8 years agoMerge pull request #185 from sam-moodle/grade_update_issue-master
Dan Marsden [Mon, 14 Mar 2016 20:13:41 +0000 (09:13 +1300)] 
Merge pull request #185 from sam-moodle/grade_update_issue-master

INT-8591: Don't update grades on preferences save when they don't exi…

8 years agoFixes #190 Show warning message when no users in course
Dan Marsden [Mon, 14 Mar 2016 20:02:06 +0000 (09:02 +1300)] 
Fixes #190 Show warning message when no users in course

8 years agoINT-8591: Don't update grades on preferences save when they don't exist yet
Sam Chaffee [Wed, 20 Jan 2016 23:34:24 +0000 (16:34 -0700)] 
INT-8591: Don't update grades on preferences save when they don't exist yet

8 years agoTidy up some PHP, unsed functions, vars etc.
Dan Marsden [Sun, 22 Nov 2015 23:52:42 +0000 (12:52 +1300)] 
Tidy up some PHP, unsed functions, vars etc.

8 years agojavascript required for tests.
Dan Marsden [Sun, 22 Nov 2015 23:52:25 +0000 (12:52 +1300)] 
javascript required for tests.

8 years agoRemove export file download tests as these are not compatible
Dan Marsden [Fri, 20 Nov 2015 01:56:52 +0000 (14:56 +1300)] 
Remove export file download tests as these are not compatible
We should fix the config at some point and add these back

8 years agofix typo in behat test field name
Dan Marsden [Thu, 19 Nov 2015 23:07:23 +0000 (12:07 +1300)] 
fix typo in behat test field name

8 years agoFix behat test for Teachers can view low grade report and send a message
Dan Marsden [Thu, 19 Nov 2015 22:50:29 +0000 (11:50 +1300)] 
Fix behat test for Teachers can view low grade report and send a message

8 years agocoding guideline and behat fixes
Dan Marsden [Thu, 19 Nov 2015 22:36:23 +0000 (11:36 +1300)] 
coding guideline and behat fixes

8 years agoRevert "Added support for scales"
Dan Marsden [Thu, 19 Nov 2015 22:11:48 +0000 (11:11 +1300)] 
Revert "Added support for scales"

This reverts commit 8df95e3b1d44c83a2be74cea2839403ebb791f8b.

Conflicts:
locallib.php

8 years agomore coding guideline fixes
Dan Marsden [Thu, 19 Nov 2015 22:03:55 +0000 (11:03 +1300)] 
more coding guideline fixes

8 years agoFix a couple of behat tests
Dan Marsden [Thu, 19 Nov 2015 09:23:47 +0000 (22:23 +1300)] 
Fix a couple of behat tests

8 years agoRemove "continue" links due to pull #171
Dan Marsden [Thu, 19 Nov 2015 08:56:23 +0000 (21:56 +1300)] 
Remove "continue" links due to pull #171

8 years agoMore coding guideline fixes
Dan Marsden [Thu, 19 Nov 2015 08:52:11 +0000 (21:52 +1300)] 
More coding guideline fixes

8 years agoFix some coding guideline issues.
Dan Marsden [Thu, 19 Nov 2015 07:55:55 +0000 (20:55 +1300)] 
Fix some coding guideline issues.

8 years agoFix csslint issues
Dan Marsden [Thu, 19 Nov 2015 07:36:36 +0000 (20:36 +1300)] 
Fix csslint issues

8 years agoFix JShint errors and remove deprecated call to checkall/checknone
Dan Marsden [Thu, 19 Nov 2015 07:31:21 +0000 (20:31 +1300)] 
Fix JShint errors and remove deprecated call to checkall/checknone

8 years agofix travis php 7 failure allow
Dan Marsden [Wed, 18 Nov 2015 01:46:27 +0000 (14:46 +1300)] 
fix travis php 7 failure allow

8 years agoadd link to travis build
Dan Marsden [Wed, 18 Nov 2015 01:44:47 +0000 (14:44 +1300)] 
add link to travis build

8 years agotest mysql and postgres for this branch
Dan Marsden [Wed, 18 Nov 2015 01:41:30 +0000 (14:41 +1300)] 
test mysql and postgres for this branch

8 years agoonly test correct branches
Dan Marsden [Wed, 18 Nov 2015 01:38:28 +0000 (14:38 +1300)] 
only test correct branches

8 years agoAdd Travis support
Dan Marsden [Wed, 18 Nov 2015 00:16:58 +0000 (13:16 +1300)] 
Add Travis support

8 years agoMerge pull request #177 from antonio-c-mariani/session_date_prior_course_start_date2
Dan Marsden [Tue, 17 Nov 2015 08:02:33 +0000 (21:02 +1300)] 
Merge pull request #177 from antonio-c-mariani/session_date_prior_course_start_date2

Fix issue #165 - Alert if session date is prior to the course start date

8 years agoMerge pull request #171 from antonio-c-mariani/redirecting_after_add
Dan Marsden [Tue, 17 Nov 2015 07:53:17 +0000 (20:53 +1300)] 
Merge pull request #171 from antonio-c-mariani/redirecting_after_add

Redirection to sessions list after add

8 years agoMerge pull request #181 from NeillM/master
Dan Marsden [Tue, 10 Nov 2015 20:18:12 +0000 (09:18 +1300)] 
Merge pull request #181 from NeillM/master

Expired enrolments can prevent student self-attendance

8 years agoExpired enrolments can prevent student self-attendance
Neill Magill [Mon, 9 Nov 2015 16:18:04 +0000 (16:18 +0000)] 
Expired enrolments can prevent student self-attendance

...even when their is another enrolemnt that means they are still active on the course.

This fixes issue #178 and is similar to issue #81

8 years agoRedirection to sessions list after add
antonio.c.mariani [Sat, 7 Nov 2015 22:59:02 +0000 (20:59 -0200)] 
Redirection to sessions list after add

8 years agoAlert if session date is prior to the course start date
antonio.c.mariani [Sat, 7 Nov 2015 21:35:11 +0000 (19:35 -0200)] 
Alert if session date is prior to the course start date

8 years agoimprove error string shown when multiple sessions span more than 1 year.
Dan Marsden [Wed, 4 Nov 2015 00:07:03 +0000 (13:07 +1300)] 
improve error string shown when multiple sessions span more than 1 year.

8 years agoEnd date must not exceed one year ahead of the session date
antonio.c.mariani [Tue, 20 Oct 2015 19:00:01 +0000 (17:00 -0200)] 
End date must not exceed one year ahead of the session date

8 years agoMerge pull request #174 from cedict/master
Dan Marsden [Tue, 3 Nov 2015 23:47:13 +0000 (12:47 +1300)] 
Merge pull request #174 from cedict/master

Added support for scales

8 years agoAdded support for scales
System Administrator [Mon, 2 Nov 2015 03:35:15 +0000 (14:05 +1030)] 
Added support for scales

8 years agobump version for plugins db release
Dan Marsden [Tue, 27 Oct 2015 22:05:01 +0000 (11:05 +1300)] 
bump version for plugins db release

8 years agoMerge pull request #169 from barrysspace/master
Dan Marsden [Sun, 4 Oct 2015 02:18:10 +0000 (15:18 +1300)] 
Merge pull request #169 from barrysspace/master

Fix #155 properly. Undo regression caused by moving $statuses definition

8 years agoFix #155 properly. Undo regression caused by moving $statuses definition.
Barry Oosthuizen [Fri, 2 Oct 2015 14:17:22 +0000 (15:17 +0100)] 
Fix #155 properly. Undo regression caused by moving $statuses definition.

8 years agoMerge pull request #160 from barrysspace/hotfix/issue_159_delete_selected_sessions
Dan Marsden [Thu, 24 Sep 2015 00:31:41 +0000 (12:31 +1200)] 
Merge pull request #160 from barrysspace/hotfix/issue_159_delete_selected_sessions

Fix issue #159 - Delete no selected sessions

8 years agoMerge pull request #157 from barrysspace/hotfix/issue_155_hiding_status_removes_it_master
Dan Marsden [Thu, 24 Sep 2015 00:29:56 +0000 (12:29 +1200)] 
Merge pull request #157 from barrysspace/hotfix/issue_155_hiding_status_removes_it_master

Fix #155: Hiding statuses removes them from Settings

8 years agoFix issue #159 - Delete no selected sessions
Barry Oosthuizen [Wed, 23 Sep 2015 08:52:13 +0000 (09:52 +0100)] 
Fix issue #159 - Delete no selected sessions

8 years agoFix #155: Hiding statuses removes them from Settings
Barry Oosthuizen [Tue, 22 Sep 2015 15:47:21 +0000 (16:47 +0100)] 
Fix #155: Hiding statuses removes them from Settings

8 years agoBump version to coincide with new version of attendance block
Dan Marsden [Mon, 21 Sep 2015 07:20:05 +0000 (19:20 +1200)] 
Bump version to coincide with new version of attendance block

8 years agoMerge pull request #152 from Syxton/fix_issue_118
Dan Marsden [Mon, 14 Sep 2015 00:50:38 +0000 (12:50 +1200)] 
Merge pull request #152 from Syxton/fix_issue_118

Returns all users and their lowest status in a course.

8 years agoReturns all users and their lowest status in a course.
Syxton [Fri, 11 Sep 2015 13:24:35 +0000 (09:24 -0400)] 
Returns all users and their lowest status in a course.

This will fix 2 issues.  The first, if a user has a suspended enrollment
in child course A, the active enrollment in child course B will be
honored over the suspended enrollment.  Also in this scenerio, the user
with multiple enrollments was causing a duplicate userid error to be
generated.

8 years agoMerge pull request #150 from barrysspace/hotfix/issue_145_hiding_status_master
Dan Marsden [Thu, 3 Sep 2015 21:11:33 +0000 (09:11 +1200)] 
Merge pull request #150 from barrysspace/hotfix/issue_145_hiding_status_master

Fix #145 - hiding variable status items no longer working

8 years agoFix #145 - hiding variable status items no longer working
Barry Oosthuizen [Thu, 3 Sep 2015 16:38:25 +0000 (17:38 +0100)] 
Fix #145 - hiding variable status items no longer working

8 years agoFixes #148 correct group check
Dan Marsden [Thu, 3 Sep 2015 08:34:36 +0000 (20:34 +1200)] 
Fixes #148 correct group check

8 years agoupdate README
Dan Marsden [Mon, 24 Aug 2015 09:43:17 +0000 (21:43 +1200)] 
update README

8 years agoFixes #144 - check sesskey when performing actions.
Dan Marsden [Mon, 24 Aug 2015 09:35:44 +0000 (21:35 +1200)] 
Fixes #144 - check sesskey when performing actions.

8 years agoremove deprecated calls to PARAM_MULTILANG
Dan Marsden [Mon, 24 Aug 2015 09:11:35 +0000 (21:11 +1200)] 
remove deprecated calls to PARAM_MULTILANG

8 years agoFixes #117 add classes for status in report
Dan Marsden [Mon, 24 Aug 2015 09:08:23 +0000 (21:08 +1200)] 
Fixes #117 add classes for status in report
also add some default css for PLEA status set.

8 years agoFixes #143 Include action to delete all hidden sections
Antonio Carlos Mariani [Sun, 23 Aug 2015 03:23:48 +0000 (00:23 -0300)] 
Fixes #143 Include action to delete all hidden sections

8 years agoFixes #141 fatal error caused by new groups tidy
Dan Marsden [Thu, 20 Aug 2015 23:17:20 +0000 (11:17 +1200)] 
Fixes #141 fatal error caused by new groups tidy

8 years agoobtain context and re-use to make for cleaner code.
Dan Marsden [Thu, 13 Aug 2015 11:00:49 +0000 (23:00 +1200)] 
obtain context and re-use to make for cleaner code.

8 years agorewrite groupcheck and remove permissions class
Dan Marsden [Thu, 13 Aug 2015 10:57:07 +0000 (22:57 +1200)] 
rewrite groupcheck and remove permissions class

8 years agoMore improvements to prevent the hiding of permission checks
Dan Marsden [Thu, 13 Aug 2015 10:30:51 +0000 (22:30 +1200)] 
More improvements to prevent the hiding of permission checks

8 years agoMore specific use of module context instead of global $PAGE use.
Dan Marsden [Thu, 13 Aug 2015 10:22:43 +0000 (22:22 +1200)] 
More specific use of module context instead of global $PAGE use.

8 years agoDon't hide capability checks on manage.php
Dan Marsden [Thu, 13 Aug 2015 10:04:14 +0000 (22:04 +1200)] 
Don't hide capability checks on manage.php

8 years agofunction can_be_listed not used anywhere
Dan Marsden [Thu, 13 Aug 2015 09:54:37 +0000 (21:54 +1200)] 
function can_be_listed not used anywhere

8 years agocan_view_reports() can_view() not used anywhere anymore - kill them!
Dan Marsden [Thu, 13 Aug 2015 09:48:54 +0000 (21:48 +1200)] 
can_view_reports() can_view() not used anywhere anymore - kill them!

8 years agoDon't hide capability checks.
Dan Marsden [Thu, 13 Aug 2015 09:40:52 +0000 (21:40 +1200)] 
Don't hide capability checks.

8 years agoDon't hide view capability in a function.
Dan Marsden [Thu, 13 Aug 2015 09:35:21 +0000 (21:35 +1200)] 
Don't hide view capability in a function.

8 years agofix typo from previous commit.
Dan Marsden [Thu, 13 Aug 2015 07:31:10 +0000 (19:31 +1200)] 
fix typo from previous commit.

8 years agoDelete some whitespace introduced by b0638c67
Barry Oosthuizen [Wed, 29 Jul 2015 11:31:43 +0000 (12:31 +0100)] 
Delete some whitespace introduced by b0638c67

8 years agoFixes #110 use format string when printing course name.
Dan Marsden [Wed, 29 Jul 2015 22:37:45 +0000 (10:37 +1200)] 
Fixes #110 use format string when printing course name.

all other uses of att-name and course->fullname use functions
that perform format_string() already.

8 years agoMerge pull request #137 from barrysspace/master
Dan Marsden [Tue, 28 Jul 2015 21:38:18 +0000 (09:38 +1200)] 
Merge pull request #137 from barrysspace/master

Fix issue#134 - Add 'checkweekdays' language string

8 years agoFix issue#134 - Add 'checkweekdays' language string
Barry Oosthuizen [Tue, 28 Jul 2015 12:37:24 +0000 (13:37 +0100)] 
Fix issue#134 - Add 'checkweekdays' language string

8 years agoMerge pull request #130 from ptramonti/patch-1
Dan Marsden [Sun, 26 Jul 2015 22:07:13 +0000 (10:07 +1200)] 
Merge pull request #130 from ptramonti/patch-1

Adding gradepass feature using standard functions

8 years agoMerge pull request #126 from NeillM/124
Dan Marsden [Sun, 26 Jul 2015 21:57:25 +0000 (09:57 +1200)] 
Merge pull request #126 from NeillM/124

The code for Moodle 2.9 should not allow installation on Moodle 2.7 o…

8 years agoMerge pull request #133 from barrysspace/hotfix/issue_129_empty_status
Dan Marsden [Sun, 26 Jul 2015 21:51:14 +0000 (09:51 +1200)] 
Merge pull request #133 from barrysspace/hotfix/issue_129_empty_status

Hotfix/issue 129 empty status

8 years agoBehat test to notify error for empty acronym or description
Barry Oosthuizen [Wed, 22 Jul 2015 10:58:07 +0000 (11:58 +0100)] 
Behat test to notify error for empty acronym or description

8 years agoFix issue#129 - Notify error for empty acronym or description
Barry Oosthuizen [Wed, 22 Jul 2015 10:57:46 +0000 (11:57 +0100)] 
Fix issue#129 - Notify error for empty acronym or description

8 years agoAdding gradepass feature using standard functions
Paolo Tramonti [Tue, 21 Jul 2015 15:21:53 +0000 (17:21 +0200)] 
Adding gradepass feature using standard functions

Using the Moodle core standard_grading_coursemodule_elements() function to show the grade section in the attendance module settings.
Starting from version 2.9.x this includes the gradepass feature, that permits to show, in gradebook report, the percentage of attendance in green if the grade is greater/equal than the gradepass value, otherwise is shown in red.

8 years agoThe code for Moodle 2.9 should not allow installation on Moodle 2.7 or 2.8
Neill Magill [Fri, 17 Jul 2015 08:16:06 +0000 (09:16 +0100)] 
The code for Moodle 2.9 should not allow installation on Moodle 2.7 or 2.8

8 years agoFix backup & restore errors with temporary users
Davo Smith [Mon, 13 Jul 2015 10:51:47 +0000 (11:51 +0100)] 
Fix backup & restore errors with temporary users

8 years agoBump version number to a recent date for master code
Dan Marsden [Tue, 30 Jun 2015 10:19:12 +0000 (22:19 +1200)] 
Bump version number to a recent date for master code
and tag release number