public function formattedStringToValue($type, $format, $formattedString)
    {
        if ($formattedString === null || $formattedString === "") {
            return null;
        }
        switch ($type)
        {
            case "Number": return $this->numberToValue($format, $formattedString);
            case "Text": return $this->textToValue($format, $formattedString);
            case "Date": return $this->dateToValue($format, $formattedString);
            case "Datetime": return $this->datetimeToValue($format, $formattedString);
            case "Currency": return $this->currencyToValue($format, $formattedString);
            case "Phone": return $this->phoneToValue($format, $formattedString);
            default: return $formattedString;
        }
    }
public function formattedStringToValue($type, $format, $formattedString)
    {
        if ($formattedString === null || $formattedString === "") {
            return null;
        }
        switch ($type)
        {
            case "Number": return $this->numberToValue($format, $formattedString);
            case "Text": return $this->textToValue($format, $formattedString);
            case "Date": return $this->dateToValue($format, $formattedString);
            case "Datetime": return $this->datetimeToValue($format, $formattedString);
            case "Currency": return $this->currencyToValue($format, $formattedString);
            case "Phone": return $this->phoneToValue($format, $formattedString);
            default: return $formattedString;
        }
    }
public function formattedStringToValue ( $ type , $ format , $ formattedString ) { if ( $ formattedString === null || $ formattedString === "" ) { return null ; } switch ( $ type ) { case "Number" : return $ this -> numberToValue ( $ format , $ formattedString ) ; case "Text" : return $ this -> textToValue ( $ format , $ formattedString ) ; case "Date" : return $ this -> dateToValue ( $ format , $ formattedString ) ; case "Datetime" : return $ this -> datetimeToValue ( $ format , $ formattedString ) ; case "Currency" : return $ this -> currencyToValue ( $ format , $ formattedString ) ; case "Phone" : return $ this -> phoneToValue ( $ format , $ formattedString ) ; default : return $ formattedString ; } }
Convert Formatted String To Value

@param string $type - field type
@param string $format - type format
@param string $formattedString - formatted string
@return mixed
Convert Formatted String To Value