function exportValue(&$submitValues, $notused = false) {
        // Get the values from all the child elements.
        $valuearray = array();
        foreach ($this->_elements as $element) {
            $thisexport = $element->exportValue($submitValues[$this->getName()], true);
            if (!is_null($thisexport)) {
                $valuearray += $thisexport;
            }
        }

        // Convert the value to an integer number of seconds.
        if (empty($valuearray)) {
            return null;
        }
        if ($this->_options['optional'] && empty($valuearray['enabled'])) {
            return array($this->getName() => 0);
        }
        return array($this->getName() => $valuearray['number'] * $valuearray['timeunit']);
    }
function exportValue(&$submitValues, $notused = false) {
        // Get the values from all the child elements.
        $valuearray = array();
        foreach ($this->_elements as $element) {
            $thisexport = $element->exportValue($submitValues[$this->getName()], true);
            if (!is_null($thisexport)) {
                $valuearray += $thisexport;
            }
        }

        // Convert the value to an integer number of seconds.
        if (empty($valuearray)) {
            return null;
        }
        if ($this->_options['optional'] && empty($valuearray['enabled'])) {
            return array($this->getName() => 0);
        }
        return array($this->getName() => $valuearray['number'] * $valuearray['timeunit']);
    }
function exportValue ( & $ submitValues , $ notused = false ) { // Get the values from all the child elements. $ valuearray = array ( ) ; foreach ( $ this -> _elements as $ element ) { $ thisexport = $ element -> exportValue ( $ submitValues [ $ this -> getName ( ) ] , true ) ; if ( ! is_null ( $ thisexport ) ) { $ valuearray += $ thisexport ; } } // Convert the value to an integer number of seconds. if ( empty ( $ valuearray ) ) { return null ; } if ( $ this -> _options [ 'optional' ] && empty ( $ valuearray [ 'enabled' ] ) ) { return array ( $ this -> getName ( ) => 0 ) ; } return array ( $ this -> getName ( ) => $ valuearray [ 'number' ] * $ valuearray [ 'timeunit' ] ) ; }
Output a timestamp. Give it the name of the group.
Override of standard quickforms method.

@param  array $submitValues
@param  bool  $notused Not used.
@return array field name => value. The value is the time interval in seconds.
Output a timestamp . Give it the name of the group . Override of standard quickforms method .