baseUrl()."index.php" ."?P=P_EduLink_SelectFolder" ."&L=".$LaunchId; $UserImageFieldId = EduLink::getInstance() ->configSetting("UserAvatarField"); $UserImageField = !is_null($UserImageFieldId) ? MetadataField::getField($UserImageFieldId) : null; $Html = ''; $FoundImage = false; if (!is_null($UserImageField)) { $Avatar = $Owner->get($UserImageField); if (count($Avatar)) { $Html.= (new Image($Avatar[0])) ->getHtml("mv-image-thumbnail"); $FoundImage = true; } } if (!$FoundImage) { $Html .= $Owner->getBestName(); } $Html .= ""; return $Html; } # ----- SETUP ---------------------------------------------------------------- # if there was not an error, check for required parameters if (!isset($H_Error)) { if (!isset($H_LaunchId)) { throw new Exception("H_LaunchId not defined."); } if (!isset($H_Folder)) { throw new Exception("H_Folder not defined."); } } $AF = ApplicationFramework::getInstance(); $Plugin = EduLink::getInstance(); $User = User::getCurrentUser(); $LogoFileName = $Plugin->getConfigSetting("LogoFileName"); $LogoHref = trim($Plugin->getConfigSetting("LogoHref") ?? ""); if (strlen($LogoHref) == 0) { $LogoHref = $AF->baseUrl(); } $AF->doNotUrlFingerprint('Meeple.svg'); $AF->doNotUrlFingerprint('Plus.svg'); $AF->requireUIFile("P_EduLink.css"); $AF->requireUIFile("P_EduLink.js"); $SendButton = new HtmlButton("Send Collection to LMS"); $SendButton->addClass('mv-p-edulink-send-button'); $SendButton->setIcon("ArrowUpInsideCircle.svg"); $SendButton->makeSubmitButton(); $SelectFolderUrl = "index.php?P=P_EduLink_SelectFolder" ."&L=".$H_LaunchId ."&O=".$H_Folder->ownerId(); $SelectRecordsUrl = $AF->baseUrl()."index.php" ."?P=P_EduLink_LTIHome" ."&L=".$H_LaunchId; $BaseLink = "index.php?P=P_EduLink_ViewFolder" ."&L=".$H_LaunchId ."&F=".$H_Folder->id(); $SelectionUI = new ResourceSelectionUI( $H_ResourceIds, $H_SelectedRecordIds ); # ----- DISPLAY -------------------------------------------------------------- include($AF->gUIFile("EduLink-StdPageStart.html")); if (isset($H_Error)) { print "
" ."

ERROR: ".$H_Error."

" ."
"; include($AF->gUIFile("EduLink-StdPageEnd.html")); return; } ?>
ownerId()) ?>

name() ?>

note() ?>

0 ? 'style="display: none"' : '' ?> action="" >

getHtml() ?>

(Selecting a collection will incorporate all the resources in the collection as a unit. Changes to the list of resources in the collection will propagate into the LMS automatically.)

 

selectedRecordListHtml() ?>
recordListHtml() ?>
gUIFile("EduLink-StdPageEnd.html"));