Inherited Variables
Inherited Methods
Class: learnpath
- learnpath::learnpath()
- Class constructor. Needs a database handler, a course code and a learnpath id from the database.
- learnpath::add_lp()
- Static admin function allowing addition of a learnpath to a course.
- learnpath::autosave()
- Autosaves the current results into the database for the whole learnpath
- learnpath::autosave_item()
- Autosaves the current results into the database for the current element
- learnpath::close()
- Closes the current resource
- learnpath::del_lp()
- Static admin function allowing removal of a learnpath
- learnpath::edit_add()
- Adds an item to the current learnpath
- learnpath::edit_del()
- Removes an item from the current learnpath
- learnpath::edit_update()
- Updates an item's content in place
- learnpath::export_lp()
- Static admin function exporting a learnpath into a zip file
- learnpath::get_first()
- Gets the first element URL.
- learnpath::get_last()
- Gets the last element URL.
- learnpath::get_next()
- Gets the next resource in queue (url). Also initialises time values for this viewing.
- learnpath::get_previous()
- Gets the previous resource in queue (url). Also initialises time values for this viewing
- learnpath::get_stats()
- Returns a usable array of stats related to the current learnpath and user
- learnpath::get_stats_course()
- Static method. Can be re-implemented by children. Gives an array of statistics for
- learnpath::get_stats_lp()
- Static method. Can be re-implemented by children. Gives an array of statistics for
- learnpath::get_stats_lp_user()
- Static method. Can be re-implemented by children. Gives an array of statistics for the given course, learnpath and user.
- learnpath::get_stats_user()
- Static method. Can be re-implemented by children. Gives an array of statistics for
- learnpath::log()
- Logs a message into a file
- learnpath::open()
- Open a resource = initialise all local variables relative to this resource. Depending on the child class, this might be redefined to allow several behaviours depending on the document type.
- learnpath::publish()
- Publishes a learnpath. This basically means rendering the given learnpath in a format defined
- learnpath::restart()
- Restart the whole learnpath. Return the URL of the first element.
Class Details
Defines the "scorm" child of class "learnpath"
[ Top ]
Class Variables
$type =
[line 12]
Type: mixed
Overrides:
[ Top ]
Class Methods
scorm
scorm scorm(
mixed
$db, mixed
$course_code, mixed
$resource_id, mixed
$user_id)
[line 17]
Class constructor. Based on the parent constructor.
Parameters:
[ Top ]
open
void open(
mixed
$id)
[line 23]
Opens a resource
Overrides learnpath::open() (Open a resource = initialise all local variables relative to this resource. Depending on the child class, this might be redefined to allow several behaviours depending on the document type.)
Parameters:
[ Top ]