Procedural File: resourcelinker.inc.php
Source Location: /main/newscorm/resourcelinker.inc.php
Page Details:
Tags:
Includes:
rl_get_html_resource_link [line 1698]
void rl_get_html_resource_link(
string $course_code, string $type, integer $id, [string $style = ''], [boolean $new_window = true])
|
|
Gets the link to the given added resource.
Tags:
Parameters
| string |
$course_code |
Course code |
| string |
$type |
The tool type (using constants declared in main_api.lib.php) |
| integer |
$id |
The resource ID |
| string |
$style |
Resource style (e.g. when a resource is hidden => the added resources should also be styled like they are hidden) |
| boolean |
$new_window |
Open in a new window (true) or in the current frame/window (false)? |
rl_get_resource_link_for_learnpath [line 1799]
void rl_get_resource_link_for_learnpath(
string $course_code, integer $learnpath_id, integer $id_in_path, string 3, integer 4, id 5, id_in_path 6)
|
|
Returns an HTML-formatted link to a resource, to incorporate directly into the new learning path tool. The function is a big switch on tool type. In each case, we query the corresponding table for information and build the link with that information.
Tags:
Parameters
| string |
3 |
Type (as one of the TOOL_ constants declared in main_api.lib.php) |
| integer |
4 |
ID of the database item to get (from that tool's table) |
| id |
5 |
- that is the correspondent id in the mirror tool (like Agenda item 2) |
| id_in_path |
6 |
- the unique index in the items table |
| string |
$course_code |
Course code |
| integer |
$learnpath_id |
The learning path ID (in lp table) |
| integer |
$id_in_path |
The database ID for that item in the lp_item table |
rl_get_resource_name [line 1939]
void rl_get_resource_name(
string $course_code, string $learnpath_id, integer $id_in_path)
|
|
Gets the name of a resource (generally used in learnpath when no name is provided)
Tags:
Parameters
| string |
$course_code |
Course code |
| string |
$learnpath_id |
The tool type (using constants declared in main_api.lib.php) |
| integer |
$id_in_path |
The resource ID |
|
|