Quick search:

PntRequestHandler
PntSite
PntStringConverter
PntStringConverter
arrayToLabel
checkTime
convert
convertDT
convertToBoolean
convertToDate
convertToNumber
convertToObject
convertToString
convertToTime
convertToTimestamp
formatDT
fromHtml
fromLabel
getErrorInvalidNumber
getTimeStampSeparators
initFromProp
labelFromBoolean
labelFromDate
labelFromNumber
labelFromObject
labelFromString
labelFromTime
labelFromTimestamp
splitDT
splitDtNoSeparators
toHtml
toLabel
usKbConvert4Uropean

<?php
// Copyright (c) MetaClass, 2003-2007
// Licensed under the Academic Free License version 3.0

includeClass('PntObject', 'pnt');
// ValueValidator included by PntSite

/** Object of this class convert strings to values and back according to their format settings.
* All user interface String conversions are and should be delegated to StringConverters
* to make override possible. 
* 
* This abstract superclass provides behavior for the concrete
* subclass StringConverter in the root classFolder or in the application classFolder. 
* To keep de application developers code (including localization overrides) 
* separated from the framework code override methods in the 
* concrete subclass rather then modify them here.
* @see http://www.phppeanuts.org/site/index_php/Menu/178
* @package pnt/web
*/
class PntStringConverter extends PntObject {

	var $labelItemSeparator = ', '; //separates multiple values in arrays
	var $true='true';
	var $false='false';
	var $dateFormat="Y-m-d"; //as to be shown in user interface. 
	// ! Currently not used for parsing date strings from the user interface,
	// promat from locale is used. dateFormat must correspond to locale!
	var $timestampFormat="Y-m-d H:i:s"; //as shown in user interface. Default is same as properties value
	var $timeFormat="H:i:s"; //as shown in user interface. Default is same as properties value
	var $decimal='.'; // decimal separator
	var $thousends=','; //thousends separator
	var $charset = 'ISO-8859-1';  
	var $usKbSupport4Uropean = false; //numeric keypad has only a dot key...
	
	var $errorInvalidNumber='invalid number, expected is like: ';
	var $errorInvalidDate='invalid date, expected is like: ';
	var $errorInvalidTimestamp='invalid timestamp, expected is like: ';
	var $errorInvalidTime='invalid time, expected is like: ';
	var $errorInvalidBoolean='invalid boolean, expected: ';
	var $errorInvalidType='invalid type: ';

	var $type;
	var $decimalPrecision = 2;
	
	var $error; //if not null an error occurred