当前位置: 首页>>代码示例>>PHP>>正文


PHP Resource::show方法代码示例

本文整理汇总了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;
 }
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:59,代码来源:ToolIntro.class.php

示例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 . ')';
 }
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:13,代码来源:ForumTopic.class.php

示例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;
         }
     }
 }
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:13,代码来源:Document.class.php

示例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;
         }
     }
 }
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:14,代码来源:ScormDocument.class.php

示例5: show

 /**
  * Show this invitation
  */
 function show()
 {
     parent::show();
     echo $this->invitation_code;
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:8,代码来源:SurveyInvitation.class.php

示例6: show

 /**
  * Show this learnpath
  */
 function show()
 {
     parent::show();
     echo $this->name;
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:8,代码来源:CourseCopyLearnpath.class.php

示例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>';
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:5,代码来源:wiki.class.php

示例8: show

 /**
  * Show this resource
  */
 public function show()
 {
     parent::show();
     echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')';
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:8,代码来源:ForumPost.class.php

示例9: show

 /**
  * Show this resource
  */
 function show()
 {
     parent::show();
     echo $this->obj->forum_title;
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:8,代码来源:Forum.class.php

示例10: show

 /**
  * Show this survey
  */
 function show()
 {
     parent::show();
     echo $this->code . ' - ' . $this->title;
 }
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:8,代码来源:Survey.class.php

示例11: show

 /**
  * Show this question
  */
 public function show()
 {
     parent::show();
     echo $this->obj->title;
 }
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:8,代码来源:Quiz.class.php

示例12: show

 /**
  * Show this resource
  */
 public function show()
 {
     parent::show();
     echo $this->title . ' (' . $this->url . ')';
 }
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:8,代码来源:Link.class.php

示例13: show

 public function show()
 {
     parent::show();
     echo $this->params['name'];
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:5,代码来源:Attendance.class.php

示例14: show

 /**
  * Show this question
  */
 public function show()
 {
     parent::show();
     echo $this->question;
 }
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:8,代码来源:QuizQuestion.class.php

示例15: show

 /**
  * Show this Event
  */
 function show()
 {
     parent::show();
     echo $this->title . ' (' . $this->start_date . ' -> ' . $this->end_date . ')';
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:8,代码来源:Event.class.php


注:本文中的Resource::show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。