/lib/vendor/Tsugi/Core/Link.php
PHP | 44 lines | 8 code | 7 blank | 29 comment | 0 complexity | 8e7b869d28775787b9310d9a0ac59f1c MD5 | raw file
Possible License(s): Apache-2.0
- <?php
- namespace Tsugi\Core;
- /**
- * This is a class to provide access to the resource link level data.
- *
- * This data comes from the LTI launch from the LMS.
- * A resource_link may or may not be in a context. If there
- * is a link without a context, it is a "system-wide" link
- * like "view profile" or "show all courses"
- */
- class Link {
- /**
- * The integer primary key for this link in the 'lti_link' table.
- */
- public $id;
- /**
- * The link title
- */
- public $title;
- /**
- * The current grade for the user
- *
- * If there is a current grade (float between 0.0 and 1.0)
- * it is in this variable. If there is not yet a grade for
- * this user/link combination, this will be false.
- */
- public $grade = false;
- /**
- * The result_id for the link (if set)
- *
- * This is the primary key for the lti_result row for this
- * user/link combination. It may be false. Is this is not
- * false, we can send a grade back to the LMS for this
- * user/link combination.
- */
- public $result_id = false;
- }