本文整理汇总了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');
}
示例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);
}
示例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) {