Esempio n. 1
0
 function onK2BeforeAssignFilters(&$filters)
 {
     if ($this->getAdminProcessFlag()) {
         $mainframe = JFactory::getApplication();
         $option = JRequest::getCmd('option');
         $view = JRequest::getCmd('view');
         $manufacturer = $mainframe->getUserStateFromRequest($option . $view . 'k2martManufacturer', 'k2martManufacturer', 0, 'int');
         $relation = $mainframe->getUserStateFromRequest($option . $view . 'k2martRelation', 'k2martRelation', -1, 'string');
         require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_k2mart' . DS . 'helpers' . DS . 'html.php';
         $filters['k2martManufacturer'] = K2martHTMLHelper::getManufacturerFilter('k2martManufacturer', $manufacturer, '', true);
         $filters['k2martRelation'] = K2martHTMLHelper::getRelationFilter('k2martRelation', $relation, '', true);
     }
 }