Skip to content

Commit

Permalink
Merge pull request #100 from packbackbooks/podc-859-add-disclaimer
Browse files Browse the repository at this point in the history
PODC-859: Add a Disclaimer to `LtiGrade::setCanvasExtension`
  • Loading branch information
Watercycle authored Sep 12, 2023
2 parents aa16c6f + bcecf3c commit 3971fb9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/LtiGrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,15 @@ public function getCanvasExtension()
return $this->canvas_extension;
}

// Custom Extension for Canvas.
// https://documentation.instructure.com/doc/api/score.html
/**
* Add custom extensions for Canvas.
*
* Disclaimer: You should only set this if your LMS is Canvas.
* Some LMS (e.g. Schoology) include validation logic that will throw if there
* is unexpected data. And, the type of LMS cannot simply be inferred by their URL.
*
* @see https://documentation.instructure.com/doc/api/score.html
*/
public function setCanvasExtension($value)
{
$this->canvas_extension = $value;
Expand Down

0 comments on commit 3971fb9

Please sign in to comment.