dokeos-resourcelinker
[ class tree: dokeos-resourcelinker ] [ index: dokeos-resourcelinker ] [ all elements ]

Procedural File: resourcelinker.inc.php

Source Location: /main/newscorm/resourcelinker.inc.php



Page Details:



Tags:

author:  Roan Embrechts - refactoring to improve code organisation
author:  Patrick Cool - original version
author:  Denes Nagy - further improvements for learning path builder
todo:  use the constants for the tools
todo:  use Database API instead of creating table names locally.


Includes:

include(api_get_path(SYS_CODE_PATH).'lang/english/resourcelinker.inc.php') [line 47]
include('../exercice/hotpotatoes.lib.php') [line 51]
include(api_get_path(SYS_CODE_PATH).'lang/'.$_course['language'].'/resourcelinker.inc.php') [line 49]
require_once('back_compat.inc.php') [line 46]


Tags:

author:  Roan Embrechts - refactoring to improve code organisation
author:  Patrick Cool - original version
author:  Denes Nagy - further improvements for learning path builder
todo:  use the constants for the tools
todo:  use Database API instead of creating table names locally.






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:

author:  Yannick Warnier <ywarnier@beeznest.org>, Dokeos - rebranding
author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University
todo:  use the constants for the type definitions.


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)?
[ Top ]



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:

author:  Yannick Warnier <ywarnier@beeznest.org> - rebranding based on previous work (display_addedresource_link_in_learnpath())


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
[ Top ]



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:

author:  Yannick Warnier <ywarnier@beeznest.org>, Dokeos - rebranding


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
[ Top ]



Documentation generated on Wed, 05 Sep 2007 06:15:05 +0200 by phpDocumentor 1.4.0