Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]
Badge assertion library.
Author: | Yuliya Bozhko <yuliya.bozhko@totaralms.com> |
Copyright: | 2012 onwards Totara Learning Solutions Ltd {@link http://www.totaralms.com/} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 424 lines (16 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_badges_assertion:: (12 methods):
__construct()
get_badge_id()
get_assertion_hash()
get_badge_assertion()
get_badge_class()
get_issuer()
get_related_badges()
get_endorsement()
get_criteria_badge_class()
get_alignments()
embed_data_badge_version2()
get_tags()
Class: core_badges_assertion - X-Ref
Class that represents badge assertion.__construct($hash, $obversion = OPEN_BADGES_V2) X-Ref |
Constructs with issued badge unique hash. param: string $hash Badge unique hash from badge_issued table. param: int $obversion to control version JSON-LD. |
get_badge_id() X-Ref |
Get the local id for this badge. return: int |
get_assertion_hash() X-Ref |
Get the local id for this badge assertion. return: string |
get_badge_assertion($issued = true, $usesalt = true) X-Ref |
Get badge assertion. param: boolean $issued Include the nested badge issued information. param: boolean $usesalt Hash the identity and include the salt information for the hash. return: array Badge assertion. |
get_badge_class($issued = true) X-Ref |
Get badge class information. param: boolean $issued Include the nested badge issuer information. return: array Badge Class information. |
get_issuer() X-Ref |
Get badge issuer information. return: array Issuer information. |
get_related_badges(badge $badge) X-Ref |
Get related badges of the badge. param: badge $badge Badge object. return: array|bool List related badges. |
get_endorsement() X-Ref |
Get endorsement of the badge. return: false|stdClass Endorsement information. |
get_criteria_badge_class() X-Ref |
Get criteria of badge class. return: array|string Criteria information. |
get_alignments() X-Ref |
Get alignment of the badge. return: array information. |
embed_data_badge_version2(&$json, $type = OPEN_BADGES_V2_TYPE_ASSERTION) X-Ref |
Embed data of Open Badges Specification Version 2.0 to json. param: array $json for assertion, badges, issuer. param: string $type Content type. |
get_tags() X-Ref |
Get tags of the badge. return: array tags. |