Ejemplo n.º 1
0
 /**
  * Determines the value for the element in the form view
  *
  * @param   array  $data           form data
  * @param   int    $repeatCounter  when repeating joinded groups we need to know what part of the array to access
  * @param   array  $opts           options
  *
  * @return  string	value
  */
 public function getValue($data, $repeatCounter = 0, $opts = array())
 {
     $v = parent::getValue($data, $repeatCounter, $opts);
     // $$$ rob see http://fabrikar.com/forums/showthread.php?t=25965
     if (is_array($v) && count($v) == 1) {
         $v = $v[0];
     }
     return $v;
 }