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 ---------------------------------------------------------------- $AF = ApplicationFramework::getInstance(); # if there was an error, complain and bail if (isset($H_Error)) { include($AF->gUIFile("EduLink-StdPageStart.html")); print "
" ."

ERROR: ".$H_Error."

" ."
"; include($AF->gUIFile("EduLink-StdPageEnd.html")); return; } # if there was not an error, check for required parameters if (!isset($H_Folder) || !($H_Folder instanceof Folder)) { throw new Exception("Variable \$H_Folder not set or is the wrong type."); } if (!isset($H_LaunchId) || !is_string($H_LaunchId)) { throw new Exception("Variable \$H_LaunchId not set or is the wrong type."); } if (!isset($H_ResourceIds) || !is_array($H_ResourceIds)) { throw new Exception("Variable \$H_ResourceIds not set or is the wrong type."); } if (!isset($H_SelectedRecordIds) || !is_array($H_SelectedRecordIds)) { throw new Exception("Variable \$H_SelectedRecordIds not set or is the wrong type."); } $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")); ?>
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"));