*/ class ToolIntro extends Resource { var $id; /** * intro text */ var $intro_text; /** * Create a new text introduction * @param int $id The id of this tool introduction in the Dokeos-course * @param string $intro_text */ function ToolIntro($id,$intro_text) { parent::Resource($id,RESOURCE_TOOL_INTRO); $this->id = $id; $this->intro_text = $intro_text; } /** * Show this resource */ function show() { parent::show(); if($this->id != 'course_homepage') { echo ''.get_lang($this->id).': '; } echo $this->intro_text; } } ?>