Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/lti/grade.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Variables

 $id = optional_param('id', 0, PARAM_INT)
 $l = optional_param('l', 0, PARAM_INT)
 $mode = optional_param('mode', 'all', PARAM_ALPHA)
 $download = optional_param('download' , 'none', PARAM_ALPHA)
 $context = get_context_instance(CONTEXT_MODULE, $cm->id)
 $url = new moodle_url('/mod/lti/grade.php', array('id' => $cm->id))
 $module
 $submissionquery
 $submissions = $DB->get_records_sql($submissionquery, array('ltiid' => $lti->id))
 $html
 $rowtemplate
 $rows = ''
foreach($submissions as
$submission) 
$table = str_replace('<!--table body-->', $rows, $html)
 $title = 'Submissions for ' . $lti->name

Variable Documentation

Definition at line 71 of file grade.php.

$download = optional_param('download' , 'none', PARAM_ALPHA)

Definition at line 57 of file grade.php.

$html
Initial value:
 '
<noscript>
    <!-- If javascript is disabled, we need to show the table using CSS.
        The table starts out hidden to avoid flickering as it loads -->
    <style type="text/css">
        #lti_submissions_table_container { display: block !important; }
    </style>
</noscript>

<div id="lti_submissions_table_container" style="display:none">
    <table id="lti_submissions_table">
        <thead>
            <tr>
                <th>User</th>
                <th>Date</th>
                <th>Grade</th>
            </tr>
        </thead>
        <tbody>
            <!--table body-->
        </tbody>
    </table>
</div>
'

Definition at line 101 of file grade.php.

Definition at line 54 of file grade.php.

$l = optional_param('l', 0, PARAM_INT)

Definition at line 55 of file grade.php.

Definition at line 56 of file grade.php.

$module
Initial value:
 array(
    'name'      => 'mod_lti_submissions',
    'fullpath'  => '/mod/lti/submissions.js',
    'requires'  => array('base'),
    'strings'   => array(),
)

Definition at line 80 of file grade.php.

$rows = ''

Definition at line 140 of file grade.php.

$rowtemplate
Initial value:
 '
<tr>
    <td>
        <!--firstname--> <!--lastname-->
    </td>
    <td>
        <!--datesubmitted-->
    </td>
    <td>
        <!--gradepercent-->
    </td>
</tr>
'

Definition at line 126 of file grade.php.

$submissionquery
Initial value:
 '
    SELECT s.id, u.firstname, u.lastname, u.id AS userid, s.datesubmitted, s.gradepercent
    FROM {lti_submission} s
    INNER JOIN {user} u ON s.userid = u.id
    WHERE s.ltiid = :ltiid
    ORDER BY s.datesubmitted DESC
'

Definition at line 91 of file grade.php.

$submissions = $DB->get_records_sql($submissionquery, array('ltiid' => $lti->id))

Definition at line 99 of file grade.php.

foreach ($submissions as $submission) $table = str_replace('<!--table body-->', $rows, $html)

Definition at line 156 of file grade.php.

$title = 'Submissions for ' . $lti->name

Definition at line 158 of file grade.php.

$url = new moodle_url('/mod/lti/grade.php', array('id' => $cm->id))

Definition at line 74 of file grade.php.

 All Data Structures Namespaces Files Functions Variables Enumerations