Пример #1
0
 protected function getModuleItems()
 {
     // Import module helper
     jimport('joomla.application.module.helper');
     // Get application
     $application = JFactory::getApplication();
     // Get input
     $id = $application->input->get('id', 0, 'int');
     if ($id) {
         $module = K2HelperUtilities::getModule($id);
         if ($module) {
             require_once JPATH_SITE . '/modules/mod_k2_content/helper.php';
             $this->items = ModK2ContentHelper::getItems($module->params);
         }
     }
 }