示例#1
0
 /**
  * display method of Stats view
  * @return void
  **/
 function display($tpl = null)
 {
     /* Load Javascript and CSS files */
     RaidPlannerHelper::loadJSFramework();
     /* Get state, and params */
     $app = JFactory::getApplication();
     $params = $app->getParams();
     $state = $this->get('state');
     $guild_id = $params->get('guild_id', '0');
     $groups = $params->get('allowed_groups');
     $by_chars = $params->get('stats_by_chars', 0);
     $show_rating = $params->get('show_rating', 0);
     /* Get the values from the state object that were inserted in the model's construct function */
     $lists['filter_start_time'] = $state->get('filter_start_time');
     $lists['filter_end_time'] = $state->get('filter_end_time');
     $lists['filter_character_id'] = $state->get('filter_character_id');
     $lists['filter_group_id'] = $state->get('filter_group_id');
     $this->assign('guilds', RaidPlannerHelper::getGuilds());
     $this->assign('groups', RaidPlannerHelper::getGroups(true, $groups));
     $this->assign('characters', RaidPlannerHelper::getCharacters());
     $this->assignRef('lists', $lists);
     $this->assignRef('by_chars', $by_chars);
     $this->assignRef('show_rating', $show_rating);
     $this->assignRef('guild_id', $guild_id);
     parent::display($tpl);
 }
示例#2
0
 /**
  * display method of Stats view
  * @return void
  **/
 function display($tpl = null)
 {
     /* Load Javascript and CSS files */
     RaidPlannerHelper::loadJSFramework();
     JHTML::stylesheet('com_raidplanner/raidplanner_admin.css', false, true, false);
     //get the data
     JToolBarHelper::title(JText::_('COM_RAIDPLANNER_STATS'));
     RaidPlannerHelper::showToolbarButtons();
     /* Call the state object */
     $state = $this->get('state');
     /* Get the values from the state object that were inserted in the model's construct function */
     $lists['filter_start_time'] = $state->get('filter_start_time');
     $lists['filter_end_time'] = $state->get('filter_end_time');
     $lists['filter_character_id'] = $state->get('filter_character_id');
     $lists['filter_group_id'] = $state->get('filter_group_id');
     $this->assign('guilds', RaidPlannerHelper::getGuilds());
     $this->assign('groups', RaidPlannerHelper::getGroups());
     $this->assign('characters', RaidPlannerHelper::getCharacters());
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }