Skip to content

Commit

Permalink
MDL-20534 lti: Replacing <<< strings with normal multi-line strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
scriby committed Nov 7, 2011
1 parent a55c361 commit 5de15b8
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 156 deletions.
14 changes: 7 additions & 7 deletions mod/lti/grade.php
Expand Up @@ -87,17 +87,17 @@


$PAGE->requires->yui2_lib('datatable'); $PAGE->requires->yui2_lib('datatable');


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


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


$html = <<<HTML $html = '
<noscript> <noscript>
<!-- If javascript is disabled, we need to show the table using CSS. <!-- If javascript is disabled, we need to show the table using CSS.
The table starts out hidden to avoid flickering as it loads --> The table starts out hidden to avoid flickering as it loads -->
Expand All @@ -107,7 +107,7 @@
</noscript> </noscript>
<div id="lti_submissions_table_container" style="display:none"> <div id="lti_submissions_table_container" style="display:none">
<table id='lti_submissions_table'> <table id="lti_submissions_table">
<thead> <thead>
<tr> <tr>
<th>User</th> <th>User</th>
Expand All @@ -120,9 +120,9 @@
</tbody> </tbody>
</table> </table>
</div> </div>
HTML; ';


$rowtemplate = <<<HTML $rowtemplate = '
<tr> <tr>
<td> <td>
<!--firstname--> <!--lastname--> <!--firstname--> <!--lastname-->
Expand All @@ -134,7 +134,7 @@
<!--gradepercent--> <!--gradepercent-->
</td> </td>
</tr> </tr>
HTML; ';


$rows = ''; $rows = '';


Expand Down
18 changes: 9 additions & 9 deletions mod/lti/instructor_edit_tool_type.php
Expand Up @@ -63,12 +63,12 @@
$json = json_encode($fromdb); $json = json_encode($fromdb);


//Output script to update the calling window. //Output script to update the calling window.
$script = <<<SCRIPT $script = "
<script type="text/javascript"> <script type=\"text/javascript\">
window.opener.M.mod_lti.editor.updateToolType({$json}); window.opener.M.mod_lti.editor.updateToolType({$json});
window.close(); window.close();
</script> </script>
SCRIPT; ";


echo $script; echo $script;
die; die;
Expand All @@ -82,23 +82,23 @@
$json = json_encode($fromdb); $json = json_encode($fromdb);


//Output script to update the calling window. //Output script to update the calling window.
$script = <<<SCRIPT $script = "
<script type="text/javascript"> <script type=\"text/javascript\">
window.opener.M.mod_lti.editor.addToolType({$json}); window.opener.M.mod_lti.editor.addToolType({$json});
window.close(); window.close();
</script> </script>
SCRIPT; ";


echo $script; echo $script;


die; die;
} }
} else if (isset($data->cancel)) { } else if (isset($data->cancel)) {
$script = <<<SCRIPT $script = "
<script type="text/javascript"> <script type=\"text/javascript\">
window.close(); window.close();
</script> </script>
SCRIPT; ";


echo $script; echo $script;
die; die;
Expand Down

0 comments on commit 5de15b8

Please sign in to comment.