phpDocumentor openbiz.bin
[ class tree: openbiz.bin ] [ index: openbiz.bin ] [ all elements ]

Class: TypeManager

Source Location: /TypeManager.php

Class TypeManager

Property Summary
mixed   $_localeInfo  

[ Top ]
Method Summary
void   __construct()   Constructor of TypeManager, set locale with $localCode parameter
string   ConvertDatetimeFormat()   Convert a formatted datetime to another format
mix   CurrencyToValue()   Unformat a currency to value
mix   DatetimeToValue()   Unformat a datetime to value
mix   DateToValue()   Unformat a date to value
mix   FormattedStringToValue()   Convert Formatted String To Value
mix   NumberToValue()   Unformat a number to value
mix   PhoneToValue()   Unformat a phone to value
mix   TextToValue()   Unformat a text to value
string   ValueToCurrency()   Format value to currency
string   ValueToDate()   Format value to date
string   ValueToDatetime()   Format value to date time
string   ValueToFormattedString()   Convert Value To Formatted String
string   ValueToNumber()   Format value to number
string   ValueToPhone()   Format value to phone number
string   ValueToText()   Format value to text

[ Top ]
Properties
mixed   $_localeInfo [line 25]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 33]

  void __construct( [string $localeCode = ""]  )

Constructor of TypeManager, set locale with $localCode parameter

Parameters:
string   $localeCode: 

API Tags:
Access:  public


[ Top ]
ConvertDatetimeFormat  [line 313]

  string ConvertDatetimeFormat( $fmtValue $fmtValue, $fmt1 $fmt1, $fmt2 $fmt2  )

Convert a formatted datetime to another format

Parameters:
$fmtValue   $fmtValue:  -
$fmt1   $fmt1:  -
$fmt2   $fmt2:  -

API Tags:
Return:  formatted datetime
Access:  public


[ Top ]
CurrencyToValue  [line 253]

  mix CurrencyToValue( string $fmt, string $fmtValue  )

Unformat a currency to value

Parameters:
string   $fmt:  - type format
string   $fmtValue:  - formatted string

API Tags:
Return:  - value
Access:  protected


[ Top ]
DatetimeToValue  [line 221]

  mix DatetimeToValue( string $fmt, string $fmtValue  )

Unformat a datetime to value

Parameters:
string   $fmt:  - type format
string   $fmtValue:  - formatted string

API Tags:
Return:  - ISO format YYYY-MM-DD HH:MM:SS
Access:  protected


[ Top ]
DateToValue  [line 189]

  mix DateToValue( string $fmt, string $fmtValue  )

Unformat a date to value

Parameters:
string   $fmt:  - type format
string   $fmtValue:  - formatted string

API Tags:
Return:  - ISO format YYYY-MM-DD
Access:  protected


[ Top ]
FormattedStringToValue  [line 52]

  mix FormattedStringToValue( string $type, string $fmt, string $fmtString  )

Convert Formatted String To Value

Parameters:
string   $type:  - field type
string   $fmt:  - type format
string   $fmtString:  - formatted string

API Tags:
Return:  - value
Access:  public


[ Top ]
NumberToValue  [line 119]

  mix NumberToValue( string $fmt, string $fmtValue  )

Unformat a number to value

Parameters:
string   $fmt:  - type format
string   $fmtValue:  - formatted string

API Tags:
Return:  value -
Access:  protected


[ Top ]
PhoneToValue  [line 299]

  mix PhoneToValue( mixed $mask, string $fmtValue, string $fmt  )

Unformat a phone to value

Parameters:
string   $fmt:  - type format
string   $fmtValue:  - formatted string

API Tags:
Return:  value
Access:  protected


[ Top ]
TextToValue  [line 153]

  mix TextToValue( string $fmt, string $fmtValue  )

Unformat a text to value

Parameters:
string   $fmt:  - type format
string   $fmtValue:  - formatted string

API Tags:
Return:  -
Access:  protected


[ Top ]
ValueToCurrency  [line 236]

  string ValueToCurrency( string $fmt, string $value  )

Format value to currency

Parameters:
string   $fmt:  - type format
string   $value:  - value

API Tags:
Return:  - formatted string
Access:  protected


[ Top ]
ValueToDate  [line 167]

  string ValueToDate( string $fmt, string $value  )

Format value to date

Parameters:
string   $fmt:  - type format
string   $value:  - value

API Tags:
Return:  - Empty string or formatted Time/Date
Access:  protected


[ Top ]
ValueToDatetime  [line 204]

  string ValueToDatetime( string $fmt, string $value  )

Format value to date time

Parameters:
string   $fmt:  - type format
string   $value:  - value

API Tags:
Return:  - formatted string
Access:  protected


[ Top ]
ValueToFormattedString  [line 76]

  string ValueToFormattedString( string $type, string $fmt, string $value  )

Convert Value To Formatted String

Parameters:
string   $type:  - field type
string   $fmt:  - type format
string   $value:  - value

API Tags:
Return:  - formatted string
Access:  public


[ Top ]
ValueToNumber  [line 97]

  string ValueToNumber( string $fmt, string $value  )

Format value to number

Parameters:
string   $fmt:  - type format
string   $value:  - value

API Tags:
Return:  = formatted number
Access:  protected


[ Top ]
ValueToPhone  [line 269]

  string ValueToPhone( mixed $mask, string $value, string $fmt  )

Format value to phone number

Parameters:
string   $fmt:  - type format
string   $value:  - value

API Tags:
Return:  - formatted string
Access:  protected


[ Top ]
ValueToText  [line 141]

  string ValueToText( string $fmt, string $value  )

Format value to text

Parameters:
string   $fmt:  - type format
string   $value:  - value

API Tags:
Return:  formatted string
Access:  protected


[ Top ]

Documentation generated on Tue, 22 Dec 2009 03:03:25 -0800 by phpDocumentor 1.3.0RC3