Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: OOificaiton and ATL For Students #7

Open
wants to merge 59 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
92bc99e
ATLColumnGateway and atl_manage
powertashton Aug 13, 2021
a873125
some refactored errors
powertashton Aug 13, 2021
388550c
Update atl_manage_edit.php
powertashton Aug 13, 2021
c082cae
partial error refactor
powertashton Aug 13, 2021
ad6d8e1
Added ATLColumnGateway
raynichc Sep 14, 2021
0cf99bc
Merge branch 'main' of https://github.com/powertashton/module-ATL
raynichc Sep 14, 2021
947bb07
Incremented version to 1.6.00
raynichc Sep 14, 2021
00d875c
Added forStudent Y/N to atlColumns, Added Fill ATLs for students and …
raynichc Sep 14, 2021
a468a8b
Added student ATLs
raynichc Sep 14, 2021
348de87
Added forStudents Y/N enum to atlColumns
raynichc Sep 14, 2021
6da4fd3
Added For Students setting
raynichc Sep 14, 2021
38de82c
Fixed adding coulmn and added new action/permissions
raynichc Sep 14, 2021
c2c01be
OOification and added For Students column
raynichc Sep 30, 2021
8abb549
OOification
raynichc Sep 30, 2021
ab3f82b
Removed highestAction as it wasn't used
raynichc Sep 30, 2021
34ef24d
Added complete flag and isForStudents function
raynichc Sep 30, 2021
3ab1d4c
OOified and added forStudents
raynichc Sep 30, 2021
0c8300d
OOification
raynichc Sep 30, 2021
7c9d652
Added forStudents check
raynichc Sep 30, 2021
ec3501d
added forStudent check
raynichc Sep 30, 2021
d096d23
Implemented atl_write_student
raynichc Sep 30, 2021
7a4d108
Implemented student atl write complete form and process
raynichc Sep 30, 2021
0399835
Added ATL Entry Gateway
raynichc Sep 30, 2021
ec79b6c
Fixed manifest
raynichc Oct 2, 2021
78069cc
Fixed not complete flag
raynichc Oct 9, 2021
b4448ab
Added queryATLsByStudent
raynichc Oct 9, 2021
7770a71
OOified getATLRecord and removed unused arguments from sidebarExtra
raynichc Oct 9, 2021
9d1d6a7
Added missing comma
raynichc Oct 9, 2021
bce75a5
Changed alert to use Format, removed unused arguments from getATLRecord
raynichc Oct 9, 2021
623f60e
Removed unused arguments from sidebarExtra
raynichc Oct 9, 2021
a3d0ecb
Removed groupingID
raynichc Oct 9, 2021
5c51749
Removed unused arguments from getATLRecord
raynichc Oct 9, 2021
9e41675
Removed table locking
raynichc Oct 9, 2021
98e82bf
Removed highestAction
raynichc Oct 9, 2021
9cc6a25
Removed unused arguments from sidebarExtra
raynichc Oct 9, 2021
be47a09
Simplified delete and deleteProcess
raynichc Oct 9, 2021
120863f
Moved gibbonCourseClassID to POST
raynichc Oct 10, 2021
8de47f6
Moved gibbonCourseClassID to POST
raynichc Oct 10, 2021
e99d729
WIP: OOficiation
raynichc Oct 10, 2021
64148c5
Simplified permission logic
raynichc Oct 10, 2021
284627a
Move atlColumnID and gibbonCourseClassID to POST and removed gibbonCo…
raynichc Oct 10, 2021
5396907
WIP: OOification
raynichc Oct 10, 2021
6a30d33
OOification
raynichc Oct 10, 2021
bb33b4a
Merge branch 'main' of https://github.com/GibbonEdu/module-ATL
raynichc Oct 10, 2021
e646bc2
Replaced class select with multiselect
raynichc Oct 11, 2021
1c3743d
Added gateway init
raynichc Oct 11, 2021
4b20d43
Added complete date for students message
raynichc Oct 11, 2021
cd2907c
Added atlEntries if successfully created ATL Columns
raynichc Oct 11, 2021
fc60ec9
Deleted atlEntries when deleting atlColumns
raynichc Oct 11, 2021
714aa36
Removed creation of atlEntry on access if student.
raynichc Oct 11, 2021
120e789
Added createATLEntries method
raynichc Oct 11, 2021
97f77c2
Added completeDate check
raynichc Oct 11, 2021
e7c8218
Changed completeDate to today
raynichc Jan 16, 2022
dbf20fb
Hack to load in ATL Module Gateways
raynichc Jan 16, 2022
eafcf11
Fixed gibbonCourseClass to gibbonCourseClassID
raynichc Jan 16, 2022
824d3ae
Editing an ATL Column's rubric now resets the complete status of the …
raynichc Jan 16, 2022
e0966e6
Added student photo
raynichc Jan 16, 2022
8b54e8e
Added student photo and student's cannot see context data
raynichc Jan 16, 2022
ed71033
Update all ATL code from the TIS copy of the module
SKuipers Oct 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
316 changes: 173 additions & 143 deletions ATL/CHANGEDB.php
Original file line number Diff line number Diff line change
@@ -1,143 +1,173 @@
<?php
//USE ;end TO SEPERATE SQL STATEMENTS. DON'T USE ;end IN ANY OTHER PLACES!

$sql = array();
$count = 0;

//v1.0.00 - FIRST VERSION, SO NO CHANGES
$sql[$count][0] = '1.0.00';
$sql[$count][1] = '';

//v1.0.01
++$count;
$sql[$count][0] = '1.0.01';
$sql[$count][1] = '';

//v1.0.02
++$count;
$sql[$count][0] = '1.0.02';
$sql[$count][1] = '';

//v1.1.00
++$count;
$sql[$count][0] = '1.1.00';
$sql[$count][1] = "
ALTER TABLE `atlEntry` DROP `comment`;end
ALTER TABLE `atlEntry` ADD `complete` ENUM('Y','N') NOT NULL DEFAULT 'N' AFTER `gibbonPersonIDStudent`;end
ALTER TABLE `atlColumn` DROP `comment`;end
";

//v1.1.01
++$count;
$sql[$count][0] = '1.1.01';
$sql[$count][1] = '';

//v1.1.02
++$count;
$sql[$count][0] = '1.1.02';
$sql[$count][1] = '';

//v1.1.03
++$count;
$sql[$count][0] = '1.1.03';
$sql[$count][1] = "
ALTER TABLE `atlEntry` ADD INDEX(`atlColumnID`);end
ALTER TABLE `atlEntry` ADD INDEX(`gibbonPersonIDStudent`);end
ALTER TABLE `atlColumn` ADD INDEX(`gibbonCourseClassID`);end
ALTER TABLE `atlColumn` ADD INDEX(`gibbonRubricID`);end
";

//v1.2.00
++$count;
$sql[$count][0] = '1.2.00';
$sql[$count][1] = '';

//v1.3.00
++$count;
$sql[$count][0] = '1.3.00';
$sql[$count][1] = '';

//v1.4.00
++$count;
$sql[$count][0] = '1.4.00';
$sql[$count][1] = '';

//v1.4.01
++$count;
$sql[$count][0] = '1.4.01';
$sql[$count][1] = '';

//v1.4.02
++$count;
$sql[$count][0] = '1.4.02';
$sql[$count][1] = '';

//v1.4.03
++$count;
$sql[$count][0] = '1.4.03';
$sql[$count][1] = '';

//v1.4.04
++$count;
$sql[$count][0] = '1.4.04';
$sql[$count][1] = '';

//v1.4.05
++$count;
$sql[$count][0] = '1.4.05';
$sql[$count][1] = '';

//v1.4.06
++$count;
$sql[$count][0] = '1.4.06';
$sql[$count][1] = '';

//v1.4.07
++$count;
$sql[$count][0] = '1.4.07';
$sql[$count][1] = '';

//v1.4.08
++$count;
$sql[$count][0] = '1.4.08';
$sql[$count][1] = '';

//v1.4.09
++$count;
$sql[$count][0] = '1.4.09';
$sql[$count][1] = '';

//v1.4.10
++$count;
$sql[$count][0] = '1.4.10';
$sql[$count][1] = '';

//v1.4.11
++$count;
$sql[$count][0] = '1.4.11';
$sql[$count][1] = '';

//v1.4.12
++$count;
$sql[$count][0] = '1.4.12';
$sql[$count][1] = '';

//v1.4.13
++$count;
$sql[$count][0] = '1.4.13';
$sql[$count][1] = '';

//v1.5.00
++$count;
$sql[$count][0] = '1.5.00';
$sql[$count][1] = '';

//v1.5.01
++$count;
$sql[$count][0] = '1.5.01';
$sql[$count][1] = '';

//v1.5.02
++$count;
$sql[$count][0] = '1.5.02';
$sql[$count][1] = '';
<?php
//USE ;end TO SEPERATE SQL STATEMENTS. DON'T USE ;end IN ANY OTHER PLACES!

$sql = array();
$count = 0;

//v1.0.00 - FIRST VERSION, SO NO CHANGES
$sql[$count][0] = '1.0.00';
$sql[$count][1] = '';

//v1.0.01
++$count;
$sql[$count][0] = '1.0.01';
$sql[$count][1] = '';

//v1.0.02
++$count;
$sql[$count][0] = '1.0.02';
$sql[$count][1] = '';

//v1.1.00
++$count;
$sql[$count][0] = '1.1.00';
$sql[$count][1] = "
ALTER TABLE `atlEntry` DROP `comment`;end
ALTER TABLE `atlEntry` ADD `complete` ENUM('Y','N') NOT NULL DEFAULT 'N' AFTER `gibbonPersonIDStudent`;end
ALTER TABLE `atlColumn` DROP `comment`;end
";

//v1.1.01
++$count;
$sql[$count][0] = '1.1.01';
$sql[$count][1] = '';

//v1.1.02
++$count;
$sql[$count][0] = '1.1.02';
$sql[$count][1] = '';

//v1.1.03
++$count;
$sql[$count][0] = '1.1.03';
$sql[$count][1] = "
ALTER TABLE `atlEntry` ADD INDEX(`atlColumnID`);end
ALTER TABLE `atlEntry` ADD INDEX(`gibbonPersonIDStudent`);end
ALTER TABLE `atlColumn` ADD INDEX(`gibbonCourseClassID`);end
ALTER TABLE `atlColumn` ADD INDEX(`gibbonRubricID`);end
";

//v1.2.00
++$count;
$sql[$count][0] = '1.2.00';
$sql[$count][1] = '';

//v1.3.00
++$count;
$sql[$count][0] = '1.3.00';
$sql[$count][1] = '';

//v1.4.00
++$count;
$sql[$count][0] = '1.4.00';
$sql[$count][1] = '';

//v1.4.01
++$count;
$sql[$count][0] = '1.4.01';
$sql[$count][1] = '';

//v1.4.02
++$count;
$sql[$count][0] = '1.4.02';
$sql[$count][1] = '';

//v1.4.03
++$count;
$sql[$count][0] = '1.4.03';
$sql[$count][1] = '';

//v1.4.04
++$count;
$sql[$count][0] = '1.4.04';
$sql[$count][1] = '';

//v1.4.05
++$count;
$sql[$count][0] = '1.4.05';
$sql[$count][1] = '';

//v1.4.06
++$count;
$sql[$count][0] = '1.4.06';
$sql[$count][1] = '';

//v1.4.07
++$count;
$sql[$count][0] = '1.4.07';
$sql[$count][1] = '';

//v1.4.08
++$count;
$sql[$count][0] = '1.4.08';
$sql[$count][1] = '';

//v1.4.09
++$count;
$sql[$count][0] = '1.4.09';
$sql[$count][1] = '';

//v1.4.10
++$count;
$sql[$count][0] = '1.4.10';
$sql[$count][1] = '';

//v1.4.11
++$count;
$sql[$count][0] = '1.4.11';
$sql[$count][1] = '';

//v1.4.12
++$count;
$sql[$count][0] = '1.4.12';
$sql[$count][1] = '';

//v1.4.13
++$count;
$sql[$count][0] = '1.4.13';
$sql[$count][1] = '';

//v1.5.00
++$count;
$sql[$count][0] = '1.5.00';
$sql[$count][1] = '';

//v1.5.01
++$count;
$sql[$count][0] = '1.5.01';
$sql[$count][1] = '';

//v1.5.02
++$count;
$sql[$count][0] = '1.5.02';
$sql[$count][1] = '';

//v1.5.03
++$count;
$sql[$count][0] = '1.5.03';
$sql[$count][1] = '';

//v1.5.04
++$count;
$sql[$count][0] = '1.5.04';
$sql[$count][1] = '';

//v1.5.05
++$count;
$sql[$count][0] = '1.5.05';
$sql[$count][1] = '';

//v1.5.06
++$count;
$sql[$count][0] = '1.5.06';
$sql[$count][1] = '';

//v1.6.00
++$count;
$sql[$count][0] = '1.6.00';
$sql[$count][1] = "
ALTER TABLE `atlColumn` ADD `forStudents` ENUM('Y','N') NOT NULL DEFAULT 'N' AFTER `completeDate`;end
INSERT INTO gibbonAction SET name='Fill ATLs', precedence=0, category='View', description='Allows students to enter ATL assessment data to columns in their classes.', URLList='atl_write_student.php', entryURL='atl_write_student.php', defaultPermissionAdmin='N', defaultPermissionTeacher='N', defaultPermissionStudent='Y', defaultPermissionParent='N', defaultPermissionSupport='N', categoryPermissionStaff='N', categoryPermissionStudent='Y', categoryPermissionParent='N', categoryPermissionOther='N', gibbonModuleID=(SELECT gibbonModuleID FROM gibbonModule WHERE name='ATL');end
INSERT INTO `gibbonPermission` (`permissionID` ,`gibbonRoleID` ,`gibbonActionID`) VALUES (NULL , (SELECT gibbonRoleID FROM gibbonRole WHERE gibbonRole.name='Student'), (SELECT gibbonActionID FROM gibbonAction JOIN gibbonModule ON (gibbonAction.gibbonModuleID=gibbonModule.gibbonModuleID) WHERE gibbonModule.name='ATL' AND gibbonAction.name='Fill ATLs'));end
ALTER TABLE atlColumn DROP `groupingID`;end
";
Loading