2 /****************************************************************/
4 /****************************************************************/
5 /* Copyright (c) 2002-2009 */
6 /* Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /****************************************************************/
16 * A class for DiscussionTools
18 * http://www.imsglobal.org/profile/cc/ccv1p0/derived_schema/domainProfile_5/imsdt_v1p0_localised.xsd
20 class DiscussionTools {
22 var $title = ''; //The Forum title
23 var $text = ''; //The description of the discussion tools.
26 function DiscussionTools($title, $text){
27 $this->title = $title;
32 return htmlspecialchars(trim($this->title));
36 //change the $IMS-CC-FILEBASE$ to the base of this directory
37 //TODO: The returned value may contains HTML, ATutor doesn't check
38 // if it contains malicious javascript at this point.
39 $this->text = preg_replace('/\$IMS\-CC\-FILEBASE\$/', '', $this->text);
40 return trim(html_entity_decode($this->text));