Beispiel #1
0
 /**
  * Method to get the data to be passed to the layout for rendering.
  *
  * @return  array
  *
  * @since   3.5
  */
 protected function getLayoutData()
 {
     $data = parent::getLayoutData();
     JPluginHelper::importPlugin('system', 'stats');
     $result = JFactory::getApplication()->triggerEvent('onGetStatsData', array('stats.field.data'));
     $data['statsData'] = $result ? reset($result) : array();
     return $data;
 }
Beispiel #2
0
 /**
  * Method to get the data to be passed to the layout for rendering.
  *
  * @return  array
  *
  * @since   3.5
  */
 protected function getLayoutData()
 {
     $data = parent::getLayoutData();
     $dispatcher = JEventDispatcher::getInstance();
     JPluginHelper::importPlugin('system', 'stats');
     $result = $dispatcher->trigger('onGetStatsData', array('stats.field.data'));
     $data['statsData'] = $result ? reset($result) : array();
     return $data;
 }