本文整理汇总了PHP中JoomdleHelperContent::getCourseGradeCategories方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomdleHelperContent::getCourseGradeCategories方法的具体用法?PHP JoomdleHelperContent::getCourseGradeCategories怎么用?PHP JoomdleHelperContent::getCourseGradeCategories使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomdleHelperContent
的用法示例。
在下文中一共展示了JoomdleHelperContent::getCourseGradeCategories方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($tpl = null) {
global $mainframe;
$app = JFactory::getApplication();
$pathway =$app->getPathWay();
$menus = $app->getMenu();
$menu = $menus->getActive();
$params = $app->getParams();
$this->assignRef('params', $params);
$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);
if ($params->get('gradingsystem_show_items') == 0)
$this->gcats = JoomdleHelperContent::getCourseGradeCategories($id);
else
{
$this->gcats = JoomdleHelperContent::call_method('get_course_grade_categories_and_items', $id);
$tpl = 'full';
}
/* pathway */
$cat_slug = $this->course_info['cat_id'].":".$this->course_info['cat_name'];
$course_slug = $this->course_info['remoteid'].":".$this->course_info['fullname'];
if(is_object($menu) && $menu->query['view'] != 'coursegradecategories') {
$pathway->addItem($this->course_info['cat_name'], 'index.php?view=coursecategory&cat_id='.$cat_slug);
$pathway->addItem($this->course_info['fullname'], 'index.php?view=detail&cat_id='.$cat_slug.'&course_id='.$course_slug);
$pathway->addItem(JText::_('COM_JOOMDLE_COURSE_GRADING_SYSTEM'), '');
}
$document = JFactory::getDocument();
$document->setTitle($this->course_info['fullname'] . ': ' . JText::_('COM_JOOMDLE_GRADING_SYSTEM'));
$this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx'));
parent::display($tpl);
}