Introduction
The LM-Light Standard
- Course Structure
- LM-Light Tags
- Starting a Course
- On Each Page
- Exiting a Course
- Starting a Test
- Saving a Test Score
- Course Completion
- Configuration File
Course Development
- Development Environment
- Using a Text Editor
- Including Tests
- Using PowerPoint
- Option 1 - PDF
- Option 2 - GIF/JPG
- Option 3 - HTML
- Using Lectora
- Download Tools
- Diagnosing Problems
Home Page
|
LM-Light Standard : Creating Courses : LM-Light Tags
Courses communicate with the LMS through tags that are included at the top of HTML pages. The following five tags are used:
Tag |
Function |
<?php require "LM-Light.php"; ?> |
initializes a page |
<?php LMsetBookmark(); ?> |
bookmarks the page (if supported by the LMS) |
<?php LMregisterTestAttempt(); ?> |
tells the LMS that you're starting a test attempt |
<?php LMsetTestScore(); ?> |
passes the (percentage) test score back to the LMS |
<?php LMsetCourseComplete(); ?> |
tells the LMS that the course is complete |
Notes:
- Although the tags will be familiar to anyone who has coded a web page in PHP, as a developer you don't need to have PHP installed on your computer. Nor do you need to know how to code in PHP.
- You should include the tags as they are written above. The only variation that's allowed is that you can change the amount of white space between the outer tags (<?php and ?>) and the inner content.
- The tags are case sensitive.
A typical page including LM-Light statements might look like this:
<?php require "LM-Light.php"; ?>
<?php LMsetBookmark(); ?>
<html>
<head>
<title>A Sample Page from a Course</title>
</head>
<body bgcolor="#ffffff">
[the body of the page]
</body>
</html>
Note that all LM-Light tags must be included before any page content is displayed. So the following is incorrect:
<?php require "LM-Light.php"; ?>
<html>
<head>
<title>A Sample Page from a Course</title>
</head>
<?php LMsetBookmark(); ?>
<body bgcolor="#ffffff">
[the body of the page]
</body>
</html>
|