Пример #1
0
	case 'removeCriteriaJoomla':
	case 'addCriteriaFixed':
	case 'removeCriteriaFixed':
	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();