/** * 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; }
/** * 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 . ')'; }
/** * 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; } } }
/** * 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; } } }
function show() { parent::show(); echo $this->reflink . ' (' . (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) . ') ' . '<i>(' . $this->dtime . ')</i>'; }
/** * Show this announcement */ function show() { parent::show(); echo $this->date . ': ' . $this->title; }
/** * @return string */ public function show() { parent::show(); echo get_lang('All'); }
/** * Show this resource */ public function show() { parent::show(); echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')'; }
/** * Show this resource */ function show() { parent::show(); echo $this->obj->cat_title; }
/** * Show this LinkCategory */ function show() { parent::show(); echo $this->title . ' ' . $this->description . '<br />'; }
/** * Show this invitation */ function show() { parent::show(); echo $this->invitation_code; }
/** * Show this question */ function show() { parent::show(); echo $this->survey_question; }
/** * Show this question */ public function show() { parent::show(); echo $this->obj->title; }
/** * Show this question */ public function show() { parent::show(); echo $this->question; }
/** * Show this survey */ function show() { parent::show(); echo $this->code . ' - ' . $this->title; }
/** * Show this Event */ function show() { parent::show(); echo $this->title; }
/** * Show this Event */ function show() { parent::show(); echo $this->title . ' (' . $this->start_date . ' -> ' . $this->end_date . ')'; }
public function show() { parent::show(); echo $this->params['title']; }
/** * Show this resource */ function show() { parent::show(); echo $this->obj->forum_title; }
/** * Show this learnpath */ function show() { parent::show(); echo $this->name; }
/** * Show this resource */ public function show() { parent::show(); echo $this->title . ' (' . $this->url . ')'; }