Quick search:

PntHttpRequest
PntRequestHandler
PntSite
PntStringConverter
__construct
_exists
addMonthName
arrayToLabel
checkTime
convert
convertDT
convertToBoolean
convertToDate
convertToNumber
convertToObject
convertToString
convertToTime
convertToTimestamp
formatDT
fromLabel
fromRequestData
getDateTimezone
getErrorInvalidNumber
getLabelCharset
getLanguageId
getTimeStampSeparators
html_version_entOptions
initFromProp
labelFromBoolean
labelFromDate
labelFromNumber
labelFromObject
labelFromString
labelFromTime
labelFromTimestamp
sanitizeHtml
sanitizeString
setHtml_version_ent
splitDT
splitDtNoSeparators
toHtml
toJsLiteral
toLabel
urlEncode
usKbConvert4Uropean

<?php
// Copyright (c) MetaClass Groningen, 2003-2012

Gen::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 {

	public $labelItemSeparator = ', '; //separates multiple values in arrays
	public $true='true';
	public $false='false';
	public $dateTimezone = null; //if set, overrides date_default_timezone
	public $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!
	public $timestampFormat="Y-m-d H:i:s"; //as shown in user interface. Default is same as properties value
	public $timeFormat="H:i:s"; //as shown in user interface. Default is same as properties value
	public $decimal='.'; // decimal separator
	public $thousends=','; //thousends separator
	public $labelCharset = null; //You need to override and add character conversion if you set this to be different from ValueValidator::getInternalCharset 
	public $html_version_ent = 'ENT_HTML401'; //do not set directly after construction; see html_version_entOptions
	public $html_version_flag = 0; //initialized on construction
	public $languageId = 'en'; 
	public $usKbSupport4Uropean = false; //numeric keypad has only a dot key...
	public $emptyToInfinity=false; //used for HistoricalVersion::validUai
	
	public $errorInvalidNumber='invalid number, expected is like: ';
	public $errorInvalidDate='invalid date, expected is like: ';
	public $errorInvalidTimestamp='invalid timestamp, expected is like: ';
	public $errorInvalidTime='invalid time, expected is like: ';
	public $errorInvalidBoolean='invalid boolean, expected: ';
	public $errorInvalidType='invalid type: ';

	public $type;
	public $decimalPrecision = 2;
	public $asId = false; //convert as id
	
	public $error; //if not null an error occurred
Copyright (c) MetaClass, 2003-2013

This code is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

Click here for a copy of the license or see http://www.gnu.org/licenses/ .