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

Class: HTML_Select_Common_FRDepartements

Source Location: /HTML_Select_Common-1.2.0/HTML/Select/Common/FRDepartements.php

Class Overview


Class to produce a HTML Select dropdown of FR Departements


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 29]
Class to produce a HTML Select dropdown of FR Departements


[ Top ]


Method Detail

HTML_Select_Common_FRDepartements (Constructor)   [line 36]

HTML_Select_Common_FRDepartements HTML_Select_Common_FRDepartements( )

Constructor
  • Access: public

[ Top ]

toHTML   [line 154]

string toHTML( string $name, [string $selectedOption = null], [string $promoText = 'Selectionnez un departement...'], [string $extraAttributes = ''])

Produces the HTML for the dropdown
  • Return: The HTML for the <select>
  • Access: public

Parameters:

string   $name   —  The name="" attribute
string   $selectedOption   —  The option to be selected by default. Must match the departement name exactly, OR departement code (though it can be a different case).
string   $promoText   —  The text to appear as the first option
string   $extraAttributes   —  Any extra attributes for the <select> tag

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:18 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.