case 'removeItem': case 'saveFinalizeCode': case 'pub': if($task == 'save'){ $id = $integrator->saveRule(); JRequest::setVar('id', $id); } else if($task == 'saveFinalizeCode'){ $integrator->saveFinalizeCode(); } else if($task == 'addItem'){ $integrator->addItem(); } else if($task == 'saveCode'){ $integrator->saveCode(); } else if($task == 'removeItem'){ $integrator->removeItem(); } else if($task == 'addCriteria'){ $integrator->addCriteria(); } else if($task == 'removeCriteria'){ $integrator->removeCriteria(); } else if($task == 'addCriteriaJoomla'){ $integrator->addCriteriaJoomla(); } else if($task == 'removeCriteriaJoomla'){ $integrator->removeCriteriaJoomla();