public function current()
 {
     $portlet = $this->portlets->current();
     $portletObj = '';
     // Require the proper portlet class
     $portletPath = get_module_path($portlet['label']) . '/connector/coursehomepage.cnr.php';
     $portletName = $portlet['label'] . '_Portlet';
     if (file_exists($portletPath)) {
         require_once $portletPath;
     } else {
         throw new Exception("Can\\'t find the file %portletPath", array('%portletPath' => $portletPath));
     }
     if (class_exists($portletName)) {
         $courseCode = ClaroCourse::getCodeFromId($this->courseId);
         $portletObj = new $portletName($portlet['id'], $courseCode, $portlet['courseId'], $portlet['rank'], $portlet['label'], $portlet['visible']);
         return $portletObj;
     } else {
         echo get_lang("Can't find the class %portletName_portlet", array('%portletName' => $portletName));
         return false;
     }
 }
 public function current()
 {
     $toolIntro = $this->toolIntroductions->current();
     $toolIntroObj = new ToolIntro($toolIntro['id'], $this->courseCode, $toolIntro['tool_id'], $toolIntro['title'], $toolIntro['content'], $toolIntro['rank'], $toolIntro['display_date'], $toolIntro['visibility']);
     return $toolIntroObj;
 }