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
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Implemented atl_write_student
  • Loading branch information
raynichc committed Sep 30, 2021
commit d096d233cd39c8fef51c570a9125dabfcdfc2ee3
69 changes: 69 additions & 0 deletions ATL/atl_write_student.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?php
/*
Gibbon, Flexible & Open School System
Copyright (C) 2010, Ross Parker

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

use Gibbon\Module\ATL\Domain\ATLColumnGateway;
use Gibbon\Services\Format;
use Gibbon\Tables\DataTable;

//Module includes
require_once __DIR__ . '/moduleFunctions.php';

$page->breadcrumbs->add('Fill ATLs');
if (isActionAccessible($guid, $connection2, '/modules/ATL/atl_write_student.php') == false) {
//Acess denied
$page->addError(__('Your request failed because you do not have access to this action.'));
} else {
$page->scripts->add('chart');
$atlColumnGateway = $container->get(ATLColumnGateway::class);
$criteria = $atlColumnGateway->newQueryCriteria()
->sortBy('completeDate');

$gibbonPersonID = $session->get('gibbonPersonID');
$atlColumns = $atlColumnGateway->queryATLColumnsByStudent($criteria, $session->get('gibbonSchoolYearID'), $gibbonPersonID, 'N');

$table = DataTable::createPaginated('studentATLs', $criteria);

$table->addColumn('course', __('Class'))
->format(Format::using('courseClassName', ['course', 'class']));

$table->addColumn('name', __('ATL'));

$table->addColumn('completeDate', __('Due Date'))
->format(Format::using('date', ['completeDate']));

$table->addActionColumn()
->addParam('gibbonRubricID')
->addParam('gibbonCourseClassID')
->addParam('gibbonPersonID', $gibbonPersonID)
->addParam('atlColumnID')
->addParam('type', 'effort')
->format(function ($column, $actions) {
$actions->addAction('data', __('Enter Data'))
->setURL('/modules/ATL/atl_write_rubric.php')
->setIcon('markbook')
->modalWindow(1100, 550);

$actions->addAction('complete', __('Complete'))
->setURL('/modules/ATL/atl_write_student_complete.php')
->setIcon('iconTick')
->modalWindow();
});

echo $table->render($atlColumns);
}