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

Class: HTML_Select_Common_UKCounty

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

Class Overview


Class to produce a HTML Select dropdown of UK Counties Probably not an entirely accurate list and no doubt contains some fluff. However it did come from Post Office data.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 31]
Class to produce a HTML Select dropdown of UK Counties Probably not an entirely accurate list and no doubt contains some fluff. However it did come from Post Office data.


[ Top ]


Method Detail

HTML_Select_Common_UKCounty (Constructor)   [line 38]

HTML_Select_Common_UKCounty HTML_Select_Common_UKCounty( )

Constructor
  • Access: public

[ Top ]

toHTML   [line 170]

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