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

Class: HTML_QuickForm2_MessageProvider_Strftime

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

Class Overview


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


Author(s):

Version:

  • Release: 2.1.0

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 41]
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 47]

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

Type:   array


[ Top ]



Method Detail

__construct (Constructor)   [line 57]

HTML_QuickForm2_MessageProvider_Strftime __construct( )

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

[ Top ]

get   [line 81]

array|string|null get( array $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 Wed, 10 Apr 2019 08:56:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.