<?php

class rex_xform_action_wrapper_value extends rex_xform_action_abstract
{
  function execute()
  {
    foreach($this->params["value_pool"]["sql"] as $key => $value)
    {
      if ($this->getElement(2) == $key)
      {
        $this->params["value_pool"]["sql"][$key] = str_replace("###value###",$this->params["value_pool"]["sql"][$key],$this->getElement(3));
        break;
      }
    }
    return;
  }

  function getDescription()
  {
    return "action|wrapper_value|label|prefix###value###suffix";
  }
}

?>