Zend_Locale_FormatLocated in /Zend/Locale/Format.php (line 39)
static array
getCorrectableDate
(string $date, [string $format = null], [string|Zend_Locale $locale = null])
static float
getFloat
( $input, [integer $precision = null], [string|Zend_Locale $locale = null], string $value)
static integer|string
getNumber
(string $input, [integer $precision = null], [string|Zend_Locale $locale = null])
static boolean
isCorrectableDate
(string $date, [string $format = null], [string|Zend_Locale $locale = null])
static string
toFloat
(string $value, [integer $precision = null], [string|Zend_Locale $locale = null])
static string
toNumber
(string $value, [integer $precision = null], [string|Zend_Locale $locale = null])
static string
toNumberFormat
(string $value, [integer $format = null], [string|Zend_Locale $locale = null])
static convertNumerals (line 83)
Changes the numbers/digits within a given string from one script to another 'Decimal' representated the stardard numbers 0-9, if a script does not exist an exception will be thrown.
Examples for conversion from Arabic to Latin numerals: convertNumerals('١١٠ Tests', 'Arab'); -> returns '100 Tests' Example for conversion from Latin to Arabic numerals: convertNumerals('100 Tests', 'Latin', 'Arab'); -> returns '١١٠ Tests'
static getCorrectableDate (line 798)
Returns an array with the normalized date from an locale date
a input of 10.01.2006 without a $locale would return: array ('day' => 10, 'month' => 1, 'year' => 2006) The optional $locale parameter is only used to convert human readable day and month names to their numeric equivalents. Some forms of invalid dates are automatically fixed, such as a $date string where month and days are swapped, and one of the two is larger than 12, or when a month or larger than 31. However, such dates are often ambiguous, so the "fixed" results might not be truly fixed. If the date was "fixed", then the return array element "fixed" will contain a non-zero value.
static getDate (line 770)
Returns an array with the normalized date from an locale date
a input of 10.01.2006 without a $locale would return: array ('day' => 10, 'month' => 1, 'year' => 2006) The optional $locale parameter is only used to convert human readable day and month names to their numeric equivalents.
static getDateFormat (line 746)
Returns the default date format for $locale.
static getFloat (line 404)
Alias for getNumber
static getInteger (line 455)
Returns the first found integer from an string Parsing depends on given locale (grouping and decimal)
Examples for input: ' 2345.4356,1234' = 23455456 '+23,3452.123' = 233452 ' 12343 ' = 12343 '-9456km' = -9456 '0' = 0 '(-){0,1}(\d+(\.){0,1})*(\,){0,1})\d+'
static getNumber (line 129)
Returns the first found number from an string Parsing depends on given locale (grouping and decimal)
Examples for input: ' 2345.4356,1234' = 23455456.1234 '+23,3452.123' = 233452.123 ' 12343 ' = 12343 '-9456km' = -9456 '0' = 0 '(-){0,1}(\d+(\.){0,1})*(\,){0,1})\d+' '١١٠ Tests' = 110 call: getNumber($string, 'Arab');
static getTime (line 882)
Returns an array with 'hour', 'minute', and 'second' elements extracted from $time
according to the order described in $format. For a format of 'H:m:s', and an input of 11:20:55, getTime() would return: array ('hour' => 11, 'minute' => 20, 'second' => 55) The optional $locale parameter may be used to help extract times from strings containing both a time and a day or month name.
static getTimeFormat (line 858)
Returns the default time format for $locale.
static isCorrectableDate (line 841)
Returns if the given string is a date
Some forms of invalid dates are automatically fixed, such as a $date string where month and days are swapped, and one of the two is larger than 12, or when a month or larger than 31. However, such dates are often ambiguous, so the "fixed" results might not be truly fixed.
static isDate (line 817)
Returns if the given string is a date
static isFloat (line 433)
Returns if a float was found Alias for isNumber()
static isInteger (line 481)
Returns if a integer was found
static isNumber (line 381)
Checks if the input contains a normalized or localized number
static isTime (line 900)
Returns is the given string is a time
static toFloat (line 419)
Returns a locale formatted integer number Alias for toNumber()
static toInteger (line 468)
Returns a localized number
static toNumber (line 184)
Returns a locale formatted number
static toNumberFormat (line 234)
Returns a self formatted number
The seperation and fraction sign is used from the set locale ##0.# -> 12345.12345 -> 12345.12345 ##0.00 -> 12345.12345 -> 12345.12 ##,##0.00 -> 12345.12345 -> 12,345.12
Documentation generated on Wed, 21 Feb 2007 11:48:53 -0800 by phpDocumentor 1.3.1