Overview

Packages

  • Geolib

Classes

  • Geo
  • GeoBody
  • GeoCell
  • GeoDebug
  • GeoHead
  • GeoHtml
  • GeoImg
  • GeoLink
  • GeoList
  • GeoSelect
  • GeoTable
  • GeoTag

Functions

  • b
  • div
  • geoAbsLink
  • geoAnchor
  • geoBody
  • geoButton
  • geoCell
  • geoCheckbox
  • geoDb
  • geoEnd
  • geoFieldSet
  • geoForm
  • geoHead
  • geoHidden
  • geoHtml
  • geoif
  • geoIList
  • geoImg
  • geoImgSubmit
  • geoInput
  • geoIsMultiArr
  • geoItem
  • geoJSLink
  • geoLabel
  • geoLegend
  • geolib_autoloader
  • geoLink
  • geoList
  • geoMultiArr
  • geoNoScript
  • geoPassword
  • geoPre
  • geoRadio
  • geoRadios
  • geoScript
  • geoSelect
  • geoStart
  • geoSubmit
  • geoTable
  • geoTabs
  • geoTag
  • geoText
  • geoTextArea
  • geoTrace
  • geoUpload
  • geovar
  • h1
  • h2
  • h3
  • h4
  • i
  • idiv
  • ispan
  • itag
  • p
  • span
  • Overview
  • Package
  • Class

Class GeoSelect

Geo - Class to create HTML select tags

GeoTag
Extended by GeoSelect
Package: Geolib
Category: Html_Tag
License: Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
Author: Peter Pitchford peter@geotonics.com
Version: Release: .1
Since: Class available since Release .1
Link: http://geotonics.com/#geolib
Located at classes/GeoSelect.php
Methods summary
public
# __construct( string $name = null, array $options = null, string $selected = null, string $id = null, array|string|boolean $atts = null, string $size = null, string $class = null, string $style = null )

Construct html select tag

Construct html select tag

Parameters

$name
Name of select tag
$options

1 or 2 dimensional array of options If 1 dimensional each row is $name=>$value If 2 dimensional each array is 0=>name 1=>value 2=>class

$selected
name of selected option
$id
id of select tag
$atts

attributes of select tag If array, is atts of select tag. If string, is a single default att If PHP true, att is onchange=>javascript to submit form

$size
size att of select tag
$class
class of select tag
$style
style of select tag

Overrides

GeoTag::__construct()
public
# setSelected( string $selected )

Set selected option

Set selected option

Parameters

$selected
name of selected option
public html
# tag( )

Output HTML select tag

Output HTML select tag

Returns

html
select tag
Methods inherited from GeoTag
baseTag(), init(), setAtt(), setText()
Properties inherited from GeoTag
$atts, $text
API documentation generated by ApiGen