function getValue() { if (($mValue = trim(parent::getValue())) === "") { return 0; } return $mValue; }
function getValue() { $sValue = parent::getValue(); if ($this->defaultFalse("/convertfromrte/")) { $aParseFunc["parseFunc."] = $GLOBALS["TSFE"]->tmpl->setup["lib."]["parseFunc_RTE."]; $sValue = $this->oForm->cObj->stdWrap($sValue, $aParseFunc); } return $sValue; }
function getValue($aItems = FALSE) { $sSetValue = parent::getValue(); if (is_array($sSetValue)) { $sSetValue = array_diff($sSetValue, array('')); } if (!is_array($sSetValue) && trim($sSetValue) !== "") { return $sSetValue; } elseif (is_array($sSetValue) && !empty($sSetValue) && !(sizeof($sSetValue) == 1 && trim($sSetValue[0]) == '')) { return $sSetValue; } if ($aItems == FALSE) { $aItems = $this->_getItems(); } return ""; }
function getValue() { $fValue = floatval(parent::getValue()); $fMin = $this->getMinValue(); $fMax = $this->getMaxValue(); if ($fValue < $fMin) { $mValue = $fMin; } if ($fValue > $fMax) { $fValue = $fMax; } return $fValue; }
function getValue() { $mValue = parent::getValue(); if ($this->_allowManualEdition() && $this->shouldConvertToTimestamp()) { if (!$this->_emptyFormValue($mValue)) { return $this->__date2tstamp($mValue, $this->_getFormat(), $this->_getTimeFormat()); } return ""; } return $mValue; }
function getValue() { return intval(parent::getValue()); }