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

Class: HTML_QuickForm_date

Source Location: /main/inc/lib/pear/HTML/QuickForm/date.php

Class Overview

HTML_Common
   |
   --HTML_QuickForm_element
      |
      --HTML_QuickForm_group
         |
         --HTML_QuickForm_date

Class for a group of elements used to input dates (and times).


Author(s):

Version:

  • 1.0

Variables

Methods


Child classes:

HTML_QuickForm_datepicker
Form element to select a date and hour (with popup datepicker)
HTML_QuickForm_datepickerdate
Form element to select a date and hour (with popup datepicker)

Inherited Variables

Inherited Methods

Class: HTML_QuickForm_group

HTML_QuickForm_group::HTML_QuickForm_group()
Class constructor
HTML_QuickForm_group::accept()
Accepts a renderer
HTML_QuickForm_group::exportValue()
As usual, to get the group's value we access its elements and call
HTML_QuickForm_group::freeze()
HTML_QuickForm_group::getElementName()
Returns the element name inside the group such as found in the html form
HTML_QuickForm_group::getElements()
Gets the grouped elements
HTML_QuickForm_group::getFrozenHtml()
Returns the value of field without HTML tags
HTML_QuickForm_group::getGroupType()
Gets the group type based on its elements Will return 'mixed' if elements contained in the group are of different types.
HTML_QuickForm_group::getName()
Returns the group name
HTML_QuickForm_group::getValue()
Returns the value of the group
HTML_QuickForm_group::onQuickFormEvent()
Called by HTML_QuickForm whenever form event is made on this element
HTML_QuickForm_group::setElements()
Sets the grouped elements
HTML_QuickForm_group::setName()
Sets the group name
HTML_QuickForm_group::setPersistantFreeze()
HTML_QuickForm_group::setValue()
Sets values for group's elements
HTML_QuickForm_group::toHtml()
Returns Html for the group
HTML_QuickForm_group::unfreeze()
HTML_QuickForm_group::_createElements()
Creates the group's elements.
HTML_QuickForm_group::_createElementsIfNotExist()
A wrapper around _createElements()

Class: HTML_QuickForm_element

HTML_QuickForm_element::HTML_QuickForm_element()
Class constructor
HTML_QuickForm_element::accept()
Accepts a renderer
HTML_QuickForm_element::apiVersion()
Returns the current API version
HTML_QuickForm_element::exportValue()
Returns a 'safe' element's value
HTML_QuickForm_element::freeze()
Freeze the element so that only its value is returned
HTML_QuickForm_element::getFrozenHtml()
Returns the value of field without HTML tags
HTML_QuickForm_element::getLabel()
Returns display text for the element
HTML_QuickForm_element::getName()
Returns the element name
HTML_QuickForm_element::getType()
Returns element type
HTML_QuickForm_element::getValue()
Returns the value of the form element
HTML_QuickForm_element::isFrozen()
Returns whether or not the element is frozen
HTML_QuickForm_element::onQuickFormEvent()
Called by HTML_QuickForm whenever form event is made on this element
HTML_QuickForm_element::setLabel()
Sets display text for the element
HTML_QuickForm_element::setName()
Sets the input field name
HTML_QuickForm_element::setPersistantFreeze()
Sets wether an element value should be kept in an hidden field when the element is frozen or not
HTML_QuickForm_element::setValue()
Sets the value of the form element
HTML_QuickForm_element::unfreeze()
Unfreezes the element so that it becomes editable
HTML_QuickForm_element::_findValue()
Tries to find the element value from the values array
HTML_QuickForm_element::_generateId()
Automatically generates and assigns an 'id' attribute for the element.
HTML_QuickForm_element::_getPersistantData()
Used by getFrozenHtml() to pass the element's value if _persistantFreeze is on
HTML_QuickForm_element::_prepareValue()
Used by exportValue() to prepare the value for returning

Class: HTML_Common

HTML_Common::HTML_Common()
Class constructor
HTML_Common::apiVersion()
Returns the current API version
HTML_Common::display()
Displays the HTML to the screen
HTML_Common::getAttribute()
Returns the value of the given attribute
HTML_Common::getAttributes()
Returns the assoc array (default) or string of attributes
HTML_Common::getComment()
Returns the HTML comment
HTML_Common::getTabOffset()
Returns the tabOffset
HTML_Common::removeAttribute()
Removes an attribute
HTML_Common::setAttributes()
Sets the HTML attributes
HTML_Common::setComment()
Sets the HTML comment to be displayed at the beginning of the HTML string
HTML_Common::setLineEnd()
Sets the line end style to Windows, Mac, Unix or a custom string.
HTML_Common::setTab()
Sets the string used to indent HTML
HTML_Common::setTabOffset()
Sets the tab offset
HTML_Common::toHtml()
Abstract method. Must be extended to return the objects HTML
HTML_Common::updateAttributes()
Updates the passed attributes without changing the other existing attributes
HTML_Common::_getAttrKey()
Returns the array key for the given non-name-value pair attribute
HTML_Common::_getAttrString()
Returns an HTML formatted attribute string
HTML_Common::_getLineEnd()
Returns the lineEnd
HTML_Common::_getTab()
Returns a string containing the unit for indenting HTML
HTML_Common::_getTabs()
Returns a string containing the offset for the whole HTML code
HTML_Common::_parseAttributes()
Returns a valid atrributes array from either a string or array
HTML_Common::_removeAttr()
Removes the given attribute from the given array
HTML_Common::_updateAttrArray()
Updates the attributes in $attr1 with the values in $attr2 without changing the other existing attributes

Class Details

[line 35]
Class for a group of elements used to input dates (and times).

Inspired by original 'date' element but reimplemented as a subclass of HTML_QuickForm_group




Tags:

author:  Alexey Borzov <avb@php.net>
version:  1.0
access:  public


[ Top ]


Class Variables

$_locale = array(
        'en'    => array (
            'weekdays_short'=> array ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'),'weekdays_long'=>array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'),'months_short'=>array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'),'months_long'=>array('January','February','March','April','May','June','July','August','September','October','November','December')),'de'=>array('weekdays_short'=>array('So','Mon','Di','Mi','Do','Fr','Sa'),'weekdays_long'=>array('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'),'months_short'=>array('Jan','Feb','M&#xe4;rz','April','Mai','Juni','Juli','Aug','Sept','Okt','Nov','Dez'),'months_long'=>array('Januar','Februar','M&#xe4;rz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember')),'fr'=>array('weekdays_short'=>array('Dim','Lun','Mar','Mer','Jeu','Ven','Sam'),'weekdays_long'=>array('Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'),'months_short'=>array('Jan','F&#xe9;v','Mar','Avr','Mai','Juin','Juil','Ao&#xfb;t','Sep','Oct','Nov','D&#xe9;c'),'months_long'=>array('Janvier','F&#xe9;vrier','Mars','Avril','Mai','Juin','Juillet','Ao&#xfb;t','Septembre','Octobre','Novembre','D&#xe9;cembre')),'hu'=>array('weekdays_short'=>array('V','H','K','Sze','Cs','P','Szo'),'weekdays_long'=>array('vas&#xe1;rnap','h&#xe9;tf&#x151;','kedd','szerda','cs&#xfc;t&#xf6;rt&#xf6;k','p&#xe9;ntek','szombat'),'months_short'=>array('jan','feb','m&#xe1;rc','&#xe1;pr','m&#xe1;j','j&#xfa;n','j&#xfa;l','aug','szept','okt','nov','dec'),'months_long'=>array('janu&#xe1;r','febru&#xe1;r','m&#xe1;rcius','&#xe1;prilis','m&#xe1;jus','j&#xfa;nius','j&#xfa;lius','augusztus','szeptember','okt&#xf3;ber','november','december')),'pl'=>array('weekdays_short'=>array('Nie','Pn','Wt','&#x15a;r','Czw','Pt','Sob'),'weekdays_long'=>array('Niedziela','Poniedzia&#x142;ek','Wtorek','&#x15a;roda','Czwartek','Pi&#x105;tek','Sobota'),'months_short'=>array('Sty','Lut','Mar','Kwi','Maj','Cze','Lip','Sie','Wrz','Pa&#x17a;','Lis','Gru'),'months_long'=>array('Stycze&#x144;','Luty','Marzec','Kwiecie&#x144;','Maj','Czerwiec','Lipiec','Sierpie&#x144;','Wrzesie&#x144;','Pa&#x17a;dziernik','Listopad','Grudzie&#x144;')),'sl'=>array('weekdays_short'=>array('Ned','Pon','Tor','Sre','Cet','Pet','Sob'),'weekdays_long'=>array('Nedelja','Ponedeljek','Torek','Sreda','Cetrtek','Petek','Sobota'),'months_short'=>array('Jan','Feb','Mar','Apr','Maj','Jun','Jul','Avg','Sep','Okt','Nov','Dec'),'months_long'=>array('Januar','Februar','Marec','April','Maj','Junij','Julij','Avgust','September','Oktober','November','December')),'ru'=>array('weekdays_short'=>array('&#x412;&#x441;','&#x41f;&#x43d;','&#x412;&#x442;','&#x421;&#x440;','&#x427;&#x442;','&#x41f;&#x442;','&#x421;&#x431;'),'weekdays_long'=>array('&#x412;&#x43e;&#x441;&#x43a;&#x440;&#x435;&#x441;&#x435;&#x43d;&#x44c;&#x435;','&#x41f;&#x43e;&#x43d;&#x435;&#x434;&#x435;&#x43b;&#x44c;&#x43d;&#x438;&#x43a;','&#x412;&#x442;&#x43e;&#x440;&#x43d;&#x438;&#x43a;','&#x421;&#x440;&#x435;&#x434;&#x430;','&#x427;&#x435;&#x442;&#x432;&#x435;&#x440;&#x433;','&#x41f;&#x44f;&#x442;&#x43d;&#x438;&#x446;&#x430;','&#x421;&#x443;&#x431;&#x431;&#x43e;&#x442;&#x430;'),'months_short'=>array('&#x42f;&#x43d;&#x432;','&#x424;&#x435;&#x432;','&#x41c;&#x430;&#x440;','&#x410;&#x43f;&#x440;','&#x41c;&#x430;&#x439;','&#x418;&#x44e;&#x43d;','&#x418;&#x44e;&#x43b;','&#x410;&#x432;&#x433;','&#x421;&#x435;&#x43d;','&#x41e;&#x43a;&#x442;','&#x41d;&#x43e;&#x44f;','&#x414;&#x435;&#x43a;'),'months_long'=>array('&#x42f;&#x43d;&#x432;&#x430;&#x440;&#x44c;','&#x424;&#x435;&#x432;&#x440;&#x430;&#x43b;&#x44c;','&#x41c;&#x430;&#x440;&#x442;','&#x410;&#x43f;&#x440;&#x435;&#x43b;&#x44c;','&#x41c;&#x430;&#x439;','&#x418;&#x44e;&#x43d;&#x44c;','&#x418;&#x44e;&#x43b;&#x44c;','&#x410;&#x432;&#x433;&#x443;&#x441;&#x442;','&#x421;&#x435;&#x43d;&#x442;&#x44f;&#x431;&#x440;&#x44c;','&#x41e;&#x43a;&#x442;&#x44f;&#x431;&#x440;&#x44c;','&#x41d;&#x43e;&#x44f;&#x431;&#x440;&#x44c;','&#x414;&#x435;&#x43a;&#x430;&#x431;&#x440;&#x44c;')),'es'=>array('weekdays_short'=>array('Dom','Lun','Mar','Mi&#xe9;','Jue','Vie','S&#xe1;b'),'weekdays_long'=>array('Domingo','Lunes','Martes','Mi&#xe9;rcoles','Jueves','Viernes','S&#xe1;bado'),'months_short'=>array('Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'),'months_long'=>array('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre')),'da'=>array('weekdays_short'=>array('S&#xf8;n','Man','Tir','Ons','Tor','Fre','L&#xf8;r'),'weekdays_long'=>array('S&#xf8;ndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','L&#xf8;rdag'),'months_short'=>array('Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec'),'months_long'=>array('Januar','Februar','Marts','April','Maj','Juni','Juli','August','September','Oktober','November','December')),'is'=>array('weekdays_short'=>array('Sun','M&#xe1;n','&#xde;ri','Mi&#xf0;','Fim','F&#xf6;s','Lau'),'weekdays_long'=>array('Sunnudagur','M&#xe1;nudagur','&#xde;ri&#xf0;judagur','Mi&#xf0;vikudagur','Fimmtudagur','F&#xf6;studagur','Laugardagur'),'months_short'=>array('Jan','Feb','Mar','Apr','Ma&#xed;','J&#xfa;n','J&#xfa;l','&#xc1;g&#xfa;','Sep','Okt','N&#xf3;v','Des'),'months_long'=>array('Jan&#xfa;ar','Febr&#xfa;ar','Mars','Apr&#xed;l','Ma&#xed;','J&#xfa;n&#xed;','J&#xfa;l&#xed;','&#xc1;g&#xfa;st','September','Okt&#xf3;ber','N&#xf3;vember','Desember')),'it'=>array('weekdays_short'=>array('Dom','Lun','Mar','Mer','Gio','Ven','Sab'),'weekdays_long'=>array('Domenica','Luned&#xec;','Marted&#xec;','Mercoled&#xec;','Gioved&#xec;','Venerd&#xec;','Sabato'),'months_short'=>array('Gen','Feb','Mar','Apr','Mag','Giu','Lug','Ago','Set','Ott','Nov','Dic'),'months_long'=>array('Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre')),'sk'=>array('weekdays_short'=>array('Ned','Pon','Uto','Str','&#x8a;tv','Pia','Sob'),'weekdays_long'=>array('Nede&#x17e;a','Pondelok','Utorok','Streda','&#x8a;tvrtok','Piatok','Sobota'),'months_short'=>array('Jan','Feb','Mar','Apr','M&#xe1;j','J&#xfa;n','J&#xfa;l','Aug','Sep','Okt','Nov','Dec'),'months_long'=>array('Janu&#xe1;r','Febru&#xe1;r','Marec','Apr&#xed;l','M&#xe1;j','J&#xfa;n','J&#xfa;l','August','September','Okt&#xf3;ber','November','December')),'cs'=>array('weekdays_short'=>array('Ne','Po','&#xda;t','St','&#x10c;t','P&#xe1;','So'),'weekdays_long'=>array('Ned&#x11b;le','Pond&#x11b;l&#xed;','&#xda;ter&#xfd;','St&#x159;eda','&#x10c;tvrtek','P&#xe1;tek','Sobota'),'months_short'=>array('Led','&#xda;no','B&#x159;e','Dub','Kv&#x11b;','&#x10c;en','&#x10c;ec','Srp','Z&#xe1;&#x159;','&#x158;&#xed;j','Lis','Pro'),'months_long'=>array('Leden','&#xda;nor','B&#x159;ezen','Duben','Kv&#x11b;ten','&#x10c;erven','&#x10c;ervenec','Srpen','Z&#xe1;&#x159;&#xed;','&#x158;&#xed;jen','Listopad','Prosinec')),'hy'=>array('weekdays_short'=>array('&#x53f;&#x580;&#x56f;','&#x535;&#x580;&#x56f;','&#x535;&#x580;&#x584;','&#x549;&#x580;&#x584;','&#x540;&#x576;&#x563;','&#x548;&#x582;&#x580;','&#x547;&#x562;&#x569;'),'weekdays_long'=>array('&#x53f;&#x56b;&#x580;&#x561;&#x56f;&#x56b;','&#x535;&#x580;&#x56f;&#x578;&#x582;&#x577;&#x561;&#x562;&#x569;&#x56b;','&#x535;&#x580;&#x565;&#x584;&#x577;&#x561;&#x562;&#x569;&#x56b;','&#x549;&#x578;&#x580;&#x565;&#x584;&#x577;&#x561;&#x562;&#x569;&#x56b;','&#x540;&#x56b;&#x576;&#x563;&#x577;&#x561;&#x562;&#x569;&#x56b;','&#x548;&#x582;&#x580;&#x562;&#x561;&#x569;','&#x547;&#x561;&#x562;&#x561;&#x569;'),'months_short'=>array('&#x540;&#x576;&#x57e;','&#x553;&#x57f;&#x580;','&#x544;&#x580;&#x57f;','&#x531;&#x57a;&#x580;','&#x544;&#x575;&#x57d;','&#x540;&#x576;&#x57d;','&#x540;&#x56c;&#x57d;','&#x555;&#x563;&#x57d;','&#x54d;&#x57a;&#x57f;','&#x540;&#x56f;&#x57f;','&#x546;&#x575;&#x574;','&#x534;&#x56f;&#x57f;'),'months_long'=>array('&#x540;&#x578;&#x582;&#x576;&#x57e;&#x561;&#x580;','&#x553;&#x565;&#x57f;&#x580;&#x57e;&#x561;&#x580;','&#x544;&#x561;&#x580;&#x57f;','&#x531;&#x57a;&#x580;&#x56b;&#x56c;','&#x544;&#x561;&#x575;&#x56b;&#x57d;','&#x540;&#x578;&#x582;&#x576;&#x56b;&#x57d;','&#x540;&#x578;&#x582;&#x56c;&#x56b;&#x57d;','&#x555;&#x563;&#x578;&#x57d;&#x57f;&#x578;&#x57d;','&#x54d;&#x565;&#x57a;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;','&#x540;&#x578;&#x56f;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;','&#x546;&#x578;&#x575;&#x565;&#x574;&#x562;&#x565;&#x580;','&#x534;&#x565;&#x56f;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;')),'nl'=>array('weekdays_short'=>array('Zo','Ma','Di','Wo','Do','Vr','Za'),'weekdays_long'=>array('Zondag','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag'),'months_short'=>array('Jan','Feb','Mar','Apr','Mei','Jun','Jul','Aug','Sep','Okt','Nov','Dec'),'months_long'=>array('Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','December')),'et'=>array('weekdays_short'=>array('P','E','T','K','N','R','L'),'weekdays_long'=>array('P&#xfc;hap&#xe4;ev','Esmasp&#xe4;ev','Teisip&#xe4;ev','Kolmap&#xe4;ev','Neljap&#xe4;ev','Reede','Laup&#xe4;ev'),'months_short'=>array('Jaan','Veebr','M&#xe4;rts','Aprill','Mai','Juuni','Juuli','Aug','Sept','Okt','Nov','Dets'),'months_long'=>array('Jaanuar','Veebruar','M&#xe4;rts','Aprill','Mai','Juuni','Juuli','August','September','Oktoober','November','Detsember')),'tr'=>array('weekdays_short'=>array('Paz','Pzt','Sal','&#xc7;ar','Per','Cum','Cts'),'weekdays_long'=>array('Pazar','Pazartesi','Sal&#x131;','&#xc7;ar&#x15f;amba','Per&#x15f;embe','Cuma','Cumartesi'),'months_short'=>array('Ock','&#x15e;bt','Mrt','Nsn','Mys','Hzrn','Tmmz','A&#x11f;st','Eyl','Ekm','Ksm','Arlk'),'months_long'=>array('Ocak','&#x15e;ubat','Mart','Nisan','May&#x131;s','Haziran','Temmuz','A&#x11f;ustos','Eyl&#xfc;l','Ekim','Kas&#x131;m','Aral&#x131;k')),'no'=>array('weekdays_short'=>array('S&#xf8;n','Man','Tir','Ons','Tor','Fre','L&#xf8;r'),'weekdays_long'=>array('S&#xf8;ndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','L&#xf8;rdag'),'months_short'=>array('Jan','Feb','Mar','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Des'),'months_long'=>array('Januar','Februar','Mars','April','Mai','Juni','Juli','August','September','Oktober','November','Desember')),'eo'=>array('weekdays_short'=>array('Dim','Lun','Mar','Mer','&#x134;a&#x16D;','Ven','Sab'),'weekdays_long'=>array('Diman&#x109;o','Lundo','Mardo','Merkredo','&#x134;a&#x16D;do','Vendredo','Sabato'),'months_short'=>array('Jan','Feb','Mar','Apr','Maj','Jun','Jul','A&#x16D;g','Sep','Okt','Nov','Dec'),'months_long'=>array('Januaro','Februaro','Marto','Aprilo','Majo','Junio','Julio','A&#x16D;gusto','Septembro','Oktobro','Novembro','Decembro')),'ua'=>array('weekdays_short'=>array('&#x41d;&#x434;&#x43b;','&#x41f;&#x43d;&#x434;','&#x412;&#x442;&#x440;','&#x421;&#x440;&#x434;','&#x427;&#x442;&#x432;','&#x41f;&#x442;&#x43d;','&#x421;&#x431;&#x442;'),'weekdays_long'=>array('&#x41d;&#x435;&#x434;&#x456;&#x43b;&#x44f;','&#x41f;&#x43e;&#x43d;&#x435;&#x434;&#x456;&#x43b;&#x43e;&#x43a;','&#x412;&#x456;&#x432;&#x442;&#x43e;&#x440;&#x43e;&#x43a;','&#x421;&#x435;&#x440;&#x435;&#x434;&#x430;','&#x427;&#x435;&#x442;&#x432;&#x435;&#x440;','&#x41f;\'&#x44f;&#x442;&#x43d;&#x438;&#x446;&#x44f;','&#x421;&#x443;&#x431;&#x43e;&#x442;&#x430;'),'months_short'=>array('&#x421;&#x456;&#x447;','&#x41b;&#x44e;&#x442;','&#x411;&#x435;&#x440;','&#x41a;&#x432;&#x456;','&#x422;&#x440;&#x430;','&#x427;&#x435;&#x440;','&#x41b;&#x438;&#x43f;','&#x421;&#x435;&#x440;','&#x412;&#x435;&#x440;','&#x416;&#x43e;&#x432;','&#x41b;&#x438;&#x441;','&#x413;&#x440;&#x443;'),'months_long'=>array('&#x421;&#x456;&#x447;&#x435;&#x43d;&#x44c;','&#x41b;&#x44e;&#x442;&#x438;&#x439;','&#x411;&#x435;&#x440;&#x435;&#x437;&#x435;&#x43d;&#x44c;','&#x41a;&#x432;&#x456;&#x442;&#x435;&#x43d;&#x44c;','&#x422;&#x440;&#x430;&#x432;&#x435;&#x43d;&#x44c;','&#x427;&#x435;&#x440;&#x432;&#x435;&#x43d;&#x44c;','&#x41b;&#x438;&#x43f;&#x435;&#x43d;&#x44c;','&#x421;&#x435;&#x440;&#x43f;&#x435;&#x43d;&#x44c;','&#x412;&#x435;&#x440;&#x435;&#x441;&#x435;&#x43d;&#x44c;','&#x416;&#x43e;&#x432;&#x442;&#x435;&#x43d;&#x44c;','&#x41b;&#x438;&#x441;&#x442;&#x43e;&#x43f;&#x430;&#x434;','&#x413;&#x440;&#x443;&#x434;&#x435;&#x43d;&#x44c;')),'ro'=>array('weekdays_short'=>array('Dum','Lun','Mar','Mie','Joi','Vin','Sam'),'weekdays_long'=>array('Duminica','Luni','Marti','Miercuri','Joi','Vineri','Sambata'),'months_short'=>array('Ian','Feb','Mar','Apr','Mai','Iun','Iul','Aug','Sep','Oct','Nov','Dec'),'months_long'=>array('Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie','Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie')),'he'=>array('weekdays_short'=>array('&#1512;&#1488;&#1513;&#1493;&#1503;','&#1513;&#1504;&#1497;','&#1513;&#1500;&#1497;&#1513;&#1497;','&#1512;&#1489;&#1497;&#1506;&#1497;','&#1495;&#1502;&#1497;&#1513;&#1497;','&#1513;&#1497;&#1513;&#1497;','&#1513;&#1489;&#1514;'),'weekdays_long'=>array('&#1497;&#1493;&#1501; &#1512;&#1488;&#1513;&#1493;&#1503;','&#1497;&#1493;&#1501; &#1513;&#1504;&#1497;','&#1497;&#1493;&#1501; &#1513;&#1500;&#1497;&#1513;&#1497;','&#1497;&#1493;&#1501; &#1512;&#1489;&#1497;&#1506;&#1497;','&#1497;&#1493;&#1501; &#1495;&#1502;&#1497;&#1513;&#1497;','&#1497;&#1493;&#1501; &#1513;&#1497;&#1513;&#1497;','&#1513;&#1489;&#1514;'),'months_short'=>array('&#1497;&#1504;&#1493;&#1488;&#1512;','&#1508;&#1489;&#1512;&#1493;&#1488;&#1512;','&#1502;&#1512;&#1509;','&#1488;&#1508;&#1512;&#1497;&#1500;','&#1502;&#1488;&#1497;','&#1497;&#1493;&#1504;&#1497;','&#1497;&#1493;&#1500;&#1497;','&#1488;&#1493;&#1490;&#1493;&#1505;&#1496;','&#1505;&#1508;&#1496;&#1502;&#1489;&#1512;','&#1488;&#1493;&#1511;&#1496;&#1493;&#1489;&#1512;','&#1504;&#1493;&#1489;&#1502;&#1489;&#1512;','&#1491;&#1510;&#1502;&#1489;&#1512;'),'months_long'=>array('&#1497;&#1504;&#1493;&#1488;&#1512;','&#1508;&#1489;&#1512;&#1493;&#1488;&#1512;','&#1502;&#1512;&#1509;','&#1488;&#1508;&#1512;&#1497;&#1500;','&#1502;&#1488;&#1497;','&#1497;&#1493;&#1504;&#1497;','&#1497;&#1493;&#1500;&#1497;','&#1488;&#1493;&#1490;&#1493;&#1505;&#1496;','&#1505;&#1508;&#1496;&#1502;&#1489;&#1512;','&#1488;&#1493;&#1511;&#1496;&#1493;&#1489;&#1512;','&#1504;&#1493;&#1489;&#1502;&#1489;&#1512;','&#1491;&#1510;&#1502;&#1489;&#1512;')),'sv'=>array('weekdays_short'=>array('S&#xf6;n','M&#xe5;n','Tis','Ons','Tor','Fre','L&#xf6;r'),'weekdays_long'=>array('S&#xf6;ndag','M&#xe5;ndag','Tisdag','Onsdag','Torsdag','Fredag','L&#xf6;rdag'),'months_short'=>array('Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec'),'months_long'=>array('Januari','Februari','Mars','April','Maj','Juni','Juli','Augusti','September','Oktober','November','December')),'pt'=>array('weekdays_short'=>array('Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'),'weekdays_long'=>array('Domingo','Segunda-feira','Ter&ccedil;a-feira','Quarta-feira','Quinta-feira','Sexta-feira','S&aacute;bado'),'months_short'=>array('Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'),'months_long'=>array('Janeiro','Fevereiro','Mar&ccedil;o','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro')),'tw'=>array('weekdays_short'=>array('&#36913;&#26085;','&#36913;&#19968;','&#36913;&#20108;','&#36913;&#19977;','&#36913;&#22235;','&#36913;&#20116;','&#36913;&#20845;'),'weekdays_long'=>array('&#26143;&#26399;&#26085;','&#26143;&#26399;&#19968;','&#26143;&#26399;&#20108;','&#26143;&#26399;&#19977;','&#26143;&#26399;&#22235;','&#26143;&#26399;&#20116;','&#26143;&#26399;&#20845;'),'months_short'=>array('&#19968;&#26376;','&#20108;&#26376;','&#19977;&#26376;','&#22235;&#26376;','&#20116;&#26376;','&#20845;&#26376;','&#19971;&#26376;','&#20843;&#26376;','&#20061;&#26376;','&#21313;&#26376;','&#21313;&#19968;&#26376;','&#21313;&#20108;&#26376;'),'months_long'=>array('&#19968;&#26376;','&#20108;&#26376;','&#19977;&#26376;','&#22235;&#26376;','&#20116;&#26376;','&#20845;&#26376;','&#19971;&#26376;','&#20843;&#26376;','&#20061;&#26376;','&#21313;&#26376;','&#21313;&#19968;&#26376;','&#21313;&#20108;&#26376;')),'pt-br'=>array('weekdays_short'=>array('Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'),'weekdays_long'=>array('Domingo','Segunda','Ter&ccedil;a','Quarta','Quinta','Sexta','S&aacute;bado'),'months_short'=>array('Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'),'months_long'=>array('Janeiro','Fevereiro','Mar&ccedil;o','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro')))

[line 98]

Options in different languages

Note to potential translators: to avoid encoding problems please send your translations with "weird" letters encoded as HTML Unicode entities




Tags:

access:  private

Type:   array


[ Top ]

$_options = array(
        'language'         => 'en',
        'format'           => 'dMY',
        'minYear'          => 2001,
        'maxYear'          => 2010,
        'addEmptyOption'   => false,
        'emptyOptionValue' => '',
        'emptyOptionText'  => '&nbsp;',
        'optionIncrement'  => array('i' => 1, 's' => 1))

[line 71]

Various options to control the element's display.

Currently known options are 'language': date language 'format': Format of the date, based on PHP's date() function. The following characters are recognised in format string: D => Short names of days l => Long names of days d => Day numbers M => Short names of months F => Long names of months m => Month numbers Y => Four digit year y => Two digit year h => 12 hour format H => 23 hour format i => Minutes s => Seconds a => am/pm A => AM/PM 'minYear': Minimum year in year select 'maxYear': Maximum year in year select 'addEmptyOption': Should an empty option be added to the top of each select box? 'emptyOptionValue': The value passed by the empty option. 'emptyOptionText': The text displayed for the empty option. 'optionIncrement': Step to increase the option values by (works for 'i' and 's')




Tags:

access:  private

Type:   array


[ Top ]

$_wrap = array('', '')

[line 87]

These complement separators, they are appended to the resultant HTML



Tags:

access:  private

Type:   array


[ Top ]



Class Methods


constructor HTML_QuickForm_date [line 269]

HTML_QuickForm_date HTML_QuickForm_date( [string $elementName = null], [mixed $elementLabel = null], [array $options = array()], [mixed $attributes = null])

Class constructor



Tags:

access:  public


Parameters:

string   $elementName   Element's name
mixed   $elementLabel   Label(s) for an element
array   $options   Options to control the element's display
mixed   $attributes   Either a typical HTML attribute string or an associative array

[ Top ]

method accept [line 475]

void accept( &$renderer, [ $required = false], [ $error = null])



Overrides HTML_QuickForm_group::accept() (Accepts a renderer)

Parameters:

   &$renderer  
   $required  
   $error  

[ Top ]

method onQuickFormEvent [line 483]

void onQuickFormEvent( $event, $arg, &$caller)



Overrides HTML_QuickForm_group::onQuickFormEvent() (Called by HTML_QuickForm whenever form event is made on this element)

Parameters:

   $event  
   $arg  
   &$caller  

[ Top ]

method setValue [line 428]

void setValue( $value)



Overrides HTML_QuickForm_group::setValue() (Sets values for group's elements)

Parameters:

   $value  

[ Top ]

method toHtml [line 463]

void toHtml( )



Overridden in child classes as:

HTML_QuickForm_datepicker::toHtml()
HTML code to display this datepicker
HTML_QuickForm_datepickerdate::toHtml()
HTML code to display this datepicker

Overrides HTML_QuickForm_group::toHtml() (Returns Html for the group)

[ Top ]

method _createElements [line 294]

void _createElements( )



Overrides HTML_QuickForm_group::_createElements() (Creates the group's elements.)

[ Top ]

method _createOptionList [line 417]

array _createOptionList( int $start, int $end, [int $step = 1])

Creates an option list containing the numbers from the start number to the end, inclusive



Tags:

return:  An array of numeric options.
access:  private


Parameters:

int   $start   The start number
int   $end   The end number
int   $step   Increment by this value

[ Top ]


Documentation generated on Thu, 12 Jun 2008 13:18:16 -0500 by phpDocumentor 1.4.1