Exemplo n.º 1
0
 /**
  * Show this resource
  */
 function show()
 {
     parent::show();
     switch ($this->id) {
         case TOOL_DOCUMENT:
             $lang_id = 'Documents';
             break;
         case TOOL_CALENDAR_EVENT:
             $lang_id = 'Agenda';
             break;
         case TOOL_LINK:
             $lang_id = 'Links';
             break;
         case TOOL_LEARNPATH:
             $lang_id = 'LearningPath';
             break;
         case TOOL_ANNOUNCEMENT:
             $lang_id = 'Announcements';
             break;
         case TOOL_FORUM:
             $lang_id = 'Forums';
             break;
         case TOOL_DROPBOX:
             $lang_id = 'Dropbox';
             break;
         case TOOL_QUIZ:
             $lang_id = 'Exercises';
             break;
         case TOOL_USER:
             $lang_id = 'Users';
             break;
         case TOOL_GROUP:
             $lang_id = 'Group';
             break;
         case TOOL_WIKI:
             $lang_id = 'Wiki';
             break;
         case TOOL_STUDENTPUBLICATION:
             $lang_id = 'StudentPublications';
             break;
         case TOOL_COURSE_HOMEPAGE:
             $lang_id = 'CourseHomepageLink';
             break;
         case TOOL_GLOSSARY:
             $lang_id = 'Glossary';
             break;
         case TOOL_NOTEBOOK:
             $lang_id = 'Notebook';
             break;
         default:
             $lang_id = ucfirst($this->id);
             // This is a wild guess.
     }
     echo '<strong>' . get_lang($lang_id, '') . ':</strong><br />';
     echo $this->intro_text;
 }
Exemplo n.º 2
0
 /**
  * Show this document
  */
 public function show()
 {
     parent::show();
     echo preg_replace('@^document@', '', $this->path);
     if (!empty($this->title)) {
         if (strpos($this->path, $this->title) === false) {
             echo " - " . $this->title;
         }
     }
 }
Exemplo n.º 3
0
 /**
  * Show this resource
  */
 function show()
 {
     parent::show();
     $extra = api_convert_and_format_date($this->obj->thread_date);
     if ($this->obj->thread_poster_id) {
         $user_info = api_get_user_info($this->obj->thread_poster_id);
         $extra = $user_info['complete_name'] . ', ' . $extra;
     }
     echo $this->obj->thread_title . ' (' . $extra . ')';
 }
Exemplo n.º 4
0
 /**
  * Show this document
  */
 public function show()
 {
     parent::show();
     $path = preg_replace('@^scorm/@', '', $this->path);
     echo $path;
     if (!empty($this->title)) {
         if (strpos($path, $this->title) === false) {
             echo " - " . $this->title;
         }
     }
 }
Exemplo n.º 5
0
 function show()
 {
     parent::show();
     echo $this->reflink . ' (' . (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) . ') ' . '<i>(' . $this->dtime . ')</i>';
 }
Exemplo n.º 6
0
 /**
  * Show this announcement
  */
 function show()
 {
     parent::show();
     echo $this->date . ': ' . $this->title;
 }
Exemplo n.º 7
0
 /**
  * Show this resource
  */
 public function show()
 {
     parent::show();
     echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')';
 }
Exemplo n.º 8
0
 /**
  * Show this resource
  */
 function show()
 {
     parent::show();
     echo $this->obj->cat_title;
 }
Exemplo n.º 9
0
 /**
  * Show this survey
  */
 function show()
 {
     parent::show();
     echo $this->code . ' - ' . $this->title;
 }
 /**
  * Show this invitation
  */
 function show()
 {
     parent::show();
     echo $this->invitation_code;
 }
Exemplo n.º 11
0
 /**
  * Show this LinkCategory
  */
 function show()
 {
     parent::show();
     echo $this->title . ' ' . $this->description . '<br />';
 }
Exemplo n.º 12
0
 /**
  * Show this question
  */
 function show()
 {
     parent::show();
     echo $this->survey_question;
 }
Exemplo n.º 13
0
 /**
  * Show this question
  */
 public function show()
 {
     parent::show();
     echo $this->obj->title;
 }
Exemplo n.º 14
0
 /**
  * Show this question
  */
 public function show()
 {
     parent::show();
     echo $this->question;
 }
 /**
  * QuizQuestionOption constructor.
  * @param mixed $obj
  */
 public function __construct($obj)
 {
     parent::__construct($obj->id, RESOURCE_QUIZQUESTION);
     $this->obj = $obj;
 }
Exemplo n.º 16
0
 /**
  * Show this Event
  */
 function show()
 {
     parent::show();
     echo $this->title . ' (' . $this->start_date . ' -> ' . $this->end_date . ')';
 }
Exemplo n.º 17
0
 /**
  * Show this Event
  */
 function show()
 {
     parent::show();
     echo $this->title;
 }
Exemplo n.º 18
0
 /**
  * Show this resource
  */
 function show()
 {
     parent::show();
     echo $this->obj->forum_title;
 }
Exemplo n.º 19
0
 public function show()
 {
     parent::show();
     echo $this->params['title'];
 }
Exemplo n.º 20
0
 /**
  * @return string
  */
 public function show()
 {
     parent::show();
     echo get_lang('All');
 }
 /**
  * Show this learnpath
  */
 function show()
 {
     parent::show();
     echo $this->name;
 }
Exemplo n.º 22
0
 /**
  * Show this resource
  */
 public function show()
 {
     parent::show();
     echo $this->title . ' (' . $this->url . ')';
 }