Location: PHPKode > projects > Moc10 PHP Library > docs/api-glossary/form_element_select_construct.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http - //www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Header //-->


        Moc10 Library v1.9.7 | A Lightweight PHP Library

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="author" content="Nick Sagona"/>
    <meta name="keywords" content="php, php library, php framework, php code library, moc10 library, moc10media, moc 10 media, moc 10, object oriented programming, oop" />
    <meta name="description" content="Moc10 Library is a lightweight, easily deployable PHP library that integrates a handful of some of the 'basics' that go into many websites, projects and applications." />
    <meta name="robots" content="all" />

    <link rel="stylesheet" type="text/css" href="../styles.css" />
    <link rel="shortcut icon" href="../moc10media.ico" type="image/ico" />


<!-- Content //-->
<div id="content">

    <h1>Moc10 Library v1.9.7 | A Lightweight PHP Library</h1>
    <ul id="mainNav">
        <li><a href="../index.html">Overview</a></li>
        <li><a href="../features.html">Features</a></li>
        <li><a href="../manual.html">Manual</a></li>
        <li>API Glossary</li>
        <li><a href="../api-docs/index.html">API Docs</a></li>
        <li><a href="../faqs.html">FAQs</a></li>
        <li><a href="../development.html">Development</a></li>
        <li><a href="../download.html">Download</a></li>
    <span class="right"><a href="../api-glossary.html">&lt; back to glossary</a></span>
    <h3>API Glossary &gt; The Form Component</h3>
    <h4>$formelement = new Moc10_Form_Element_Select($name, $value = null, $marked = null, $indent = null)</h4>

@param  string $name         (Form element name)
@param  string|array $value  (Form element value(s))
@param  string|array $marked (Contains the marked value or values of the form element, i.e. select or checkbox.)
@param  string $indent       (Additional indentation for HTML formatting)
        The constructor method instantiates a new Moc10_Form_Element_Select object, which contains the methods and properties used by a Moc10_Form object to build and render an HTML form. This form element object defines a specific render() method that overrides the inherited render() method from the parent class Moc10_Form_Element.<br /><br />
    <h5>A List of Pre-Defined Array Values (Strings passed into the $value parameter.)</h5>
        <em>(Currently, only North America, United Kingdom and Ireland are included in the default state/provinces/counties geographic values. Please expand as needed within the class constructor to accommodate the application's geographic needs.)</em>
        <li>'MONTHS_SHORT' - Months, numeric short values.</li>
        <li>'MONTHS_LONG' - Months, long name values.</li>
        <li>'DAYS_OF_MONTH' - Days of Month, numeric short values.</li>
        <li>'DAYS_OF_WEEK' - Days of Week, long name values.</li>
        <li>'HOURS' - Hours, 12-hour values.</li>
        <li>'MILITARY_HOURS' - Military Hours, 24-hour values.</li>
        <li>'MINUTES' - Minutes, incremental by 1 minute.</li>
        <li>'MINUTES_BY_5' - Minutes, incremental by 5 minutes.</li>
        <li>'MINUTES_BY_15' - Minutes, incremental by 15 minutes.</li>
        <li>'US_STATES_SHORT' - US States, short name values.</li>
        <li>'US_STATES_LONG' - US States, long name values.</li>
        <li>'US_STATES_TERR_SHORT' - US States &amp; Territories, short name values.</li>
        <li>'US_STATES_TERR_LONG' - US States &amp; Territories, long name values.</li>
        <li>'CA_PROVINCES_SHORT' - Canadian Provinces, short name values.</li>
        <li>'CA_PROVINCES_LONG' - Canadian Provinces, long name values.</li>
        <li>'MEX_STATES_SHORT' - Mexican States, short name values.</li>
        <li>'MEX_STATES_LONG' - Mexican States, long name values.</li>
        <li>'UK_COUNTIES' - UK Counties, long name values.</li>
        <li>'IRELAND_COUNTIES' - Ireland Counties, long name values.</li>
        <li>'COUNTRIES' - Countries, long name values.</li>
<!-- Footer //-->
<div id="footer">
    Copyright &copy; 2009-2011, Moc 10 Media, LLC. All rights reserved.

Return current item: Moc10 PHP Library