public function getProcessingOptionsAction()
{
$options = Processor::getInstance()->getProcessingOptions();
$returnValue = [];
$storedValues = $this->getStoredProcessingOptions($this->getParam("id"));
foreach ($options as $option) {
$value = $option['default'];
if ($storedValues && array_key_exists($option['name'], $storedValues)) {
$value = $storedValues[$option['name']];
}
$returnValue[] = ["name" => $option['name'], "label" => $option['name'], "value" => $value, "type" => $option['type'], "values" => $option['values']];
}
$this->_helper->json(["options" => $returnValue]);
}