HTML_QuickForm2
[ class tree: HTML_QuickForm2 ] [ index: HTML_QuickForm2 ] [ all elements ]

Class: HTML_QuickForm2_MessageProvider_Strftime

Source Location: /HTML_QuickForm2-2.0.2/HTML/QuickForm2/MessageProvider/Strftime.php

Class Overview


Provides lists of months and weekdays for date elements using current locale


Author(s):

Version:

  • Release: 2.0.2

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 64]
Provides lists of months and weekdays for date elements using current locale

Uses locale-aware strftime() formatting function. The class does not try to do anything with locale itself, so be sure to set it up properly before adding date elements to the form.



[ Top ]


Class Variables

$messages = array(
        'weekdays_short'=> array(),'weekdays_long'=>array(),'months_short'=>array(),'months_long'=>array())

[line 70]

Lists of month names and weekdays accorfing to current locale
  • Access: protected

Type:   array


[ Top ]



Method Detail

__construct (Constructor)   [line 80]

HTML_QuickForm2_MessageProvider_Strftime __construct( )

Constructor, builds lists of month and weekday names
  • Access: public

[ Top ]

get   [line 104]

array|string|null get( $messageId, [string $langId = null])

Returns name(s) of months and weekdays for date elements
  • Throws: HTML_QuickForm2_InvalidArgumentException if $messageId doesn't start with 'date'
  • Access: public

Parameters:

array   $messageId     Message ID
string   $langId     Not used, current locale will define the language

[ Top ]


Documentation generated on Sat, 28 Jun 2014 09:30:31 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.