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

Class: HTML_Select_Common_Country

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

Class Overview

I18N_Country
   |
   --HTML_Select_Common_Country

Class to produce a HTML Select dropdown of countries


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 28]
Class to produce a HTML Select dropdown of countries


[ Top ]


Method Detail

toHTML   [line 42]

string toHTML( string $name, [string $selectedOption = null], [string $promoText = 'Select a country...'], [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 country code.
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.