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


PHP JoomdleHelperContent::getJumpURL方法代码示例

本文整理汇总了PHP中JoomdleHelperContent::getJumpURL方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomdleHelperContent::getJumpURL方法的具体用法?PHP JoomdleHelperContent::getJumpURL怎么用?PHP JoomdleHelperContent::getJumpURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JoomdleHelperContent的用法示例。


在下文中一共展示了JoomdleHelperContent::getJumpURL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

	function display($tpl = null) {
	global $mainframe;

	$app        = JFactory::getApplication();
    $params = $app->getParams();
    $this->assignRef('params',              $params);


	$group_by_category = $params->get( 'group_by_category' );

	$user = JFactory::getUser();
	$username = $user->username;
	if ($group_by_category)
		$this->my_courses = JoomdleHelperContent::call_method ('my_courses', $username, 1);
	else
		$this->my_courses = JoomdleHelperContent::getMyCourses();

	$this->jump_url =  JoomdleHelperContent::getJumpURL ();

	$this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx'));

	$this->_prepareDocument();


	if ($group_by_category)
		$tpl =  "cats";

	if ($this->my_courses)
		parent::display($tpl);
	else
		echo $params->get('nocourses_text');
    }
开发者ID:esyacelga,项目名称:sisadmaca,代码行数:32,代码来源:view.html.php

示例2: display

 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $params = $app->getParams();
     $this->assignRef('params', $params);
     $user = JFactory::getUser();
     $username = $user->username;
     $id = $params->get('course_id');
     if (!$id) {
         $id = JRequest::getVar('course_id');
     }
     $id = (int) $id;
     if (!$id) {
         echo JText::_('COM_JOOMDLE_NO_COURSE_SELECTED');
         return;
     }
     $this->course_info = JoomdleHelperContent::getCourseInfo($id, $username);
     // user not enroled and no guest access
     if (!$this->course_info['enroled'] && !$this->course_info['guest']) {
         return;
     }
     $this->events = JoomdleHelperContent::getCourseEvents($id);
     $this->jump_url = JoomdleHelperContent::getJumpURL();
     $document = JFactory::getDocument();
     $document->setTitle($this->course_info['fullname'] . ': ' . JText::_('COM_JOOMDLE_EVENTS'));
     $this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx'));
     parent::display($tpl);
 }
开发者ID:anawu2006,项目名称:PeerLearning,代码行数:28,代码来源:view.html.php

示例3: foreach

    $target = " target='_blank'";
} else {
    $target = "";
}
?>
<div class="joomdle-course<?php 
echo $this->pageclass_sfx;
?>
">

   <h1> <?php 
echo $this->course_info['fullname'];
?>
</h1>
<?php 
$jump_url = JoomdleHelperContent::getJumpURL();
$user = JFactory::getUser();
$username = $user->username;
$session = JFactory::getSession();
$token = md5($session->getId());
$course_id = $this->course_info['remoteid'];
$direct_link = 1;
$show_summary = $this->params->get('course_show_summary');
$show_topics_numbers = $this->params->get('course_show_numbers');
if ($this->course_info['guest']) {
    $this->is_enroled = true;
}
//skip intro
//array_shift ($this->mods);
if (is_array($this->mods)) {
    foreach ($this->mods as $tema) {
开发者ID:anawu2006,项目名称:PeerLearning,代码行数:31,代码来源:default.php


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