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

Class: HTML_Select_Common_BRState

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

Class Overview


Class to produce a HTML Select dropdown of brazilian states


Author(s):

Version:

  • CVS: $Id: BRState.php 303988 2010-10-04 12:27:17Z clockwerx $

Copyright:

  • 2002 Marcelo Santos Araujo

Methods


Inherited Variables

Inherited Methods


Class Details

[line 29]
Class to produce a HTML Select dropdown of brazilian states


[ Top ]


Method Detail

getList   [line 119]

array getList( )

Returns an array with all states, indexed by shortcut
  • Return: The array containing all state data
  • Access: public

[ Top ]

HTML_Select_Common_ptBRState   [line 45]

null HTML_Select_Common_ptBRState( )

Constructor
  • Access: public

[ Top ]

toHTML   [line 89]

string toHTML( string $name, [string $selectedOption = null], [string $promoText = 'Selecione um estado...'], [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 state 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.