本文整理汇总了PHP中Resource::show方法的典型用法代码示例。如果您正苦于以下问题:PHP Resource::show方法的具体用法?PHP Resource::show怎么用?PHP Resource::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Resource
的用法示例。
在下文中一共展示了Resource::show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show
/**
* 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;
}
示例2: show
/**
* 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 . ')';
}
示例3: show
/**
* 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;
}
}
}
示例4: show
/**
* 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;
}
}
}
示例5: show
/**
* Show this invitation
*/
function show()
{
parent::show();
echo $this->invitation_code;
}
示例6: show
/**
* Show this learnpath
*/
function show()
{
parent::show();
echo $this->name;
}
示例7: show
function show()
{
parent::show();
echo $this->reflink . ' (' . (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) . ') ' . '<i>(' . $this->dtime . ')</i>';
}
示例8: show
/**
* Show this resource
*/
public function show()
{
parent::show();
echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')';
}
示例9: show
/**
* Show this resource
*/
function show()
{
parent::show();
echo $this->obj->forum_title;
}
示例10: show
/**
* Show this survey
*/
function show()
{
parent::show();
echo $this->code . ' - ' . $this->title;
}
示例11: show
/**
* Show this question
*/
public function show()
{
parent::show();
echo $this->obj->title;
}
示例12: show
/**
* Show this resource
*/
public function show()
{
parent::show();
echo $this->title . ' (' . $this->url . ')';
}
示例13: show
public function show()
{
parent::show();
echo $this->params['name'];
}
示例14: show
/**
* Show this question
*/
public function show()
{
parent::show();
echo $this->question;
}
示例15: show
/**
* Show this Event
*/
function show()
{
parent::show();
echo $this->title . ' (' . $this->start_date . ' -> ' . $this->end_date . ')';
}