Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cHTML
  • cHTMLAlignmentTable
  • cHTMLArticle
  • cHTMLAside
  • cHTMLAudio
  • cHTMLButton
  • cHTMLCanvas
  • cHTMLCheckbox
  • cHTMLContentElement
  • cHTMLDiv
  • cHTMLFieldset
  • cHTMLFooter
  • cHTMLForm
  • cHTMLFormElement
  • cHTMLHeader
  • cHTMLHgroup
  • cHTMLHiddenField
  • cHTMLIFrame
  • cHTMLImage
  • cHTMLLabel
  • cHTMLLegend
  • cHTMLLink
  • cHTMLList
  • cHTMLListItem
  • cHTMLNav
  • cHTMLOptgroup
  • cHTMLOptionElement
  • cHTMLParagraph
  • cHTMLPasswordbox
  • cHTMLRadiobutton
  • cHTMLScript
  • cHTMLSection
  • cHTMLSelectElement
  • cHTMLSpan
  • cHTMLTable
  • cHTMLTableBody
  • cHTMLTableData
  • cHTMLTableHead
  • cHTMLTableHeader
  • cHTMLTableRow
  • cHTMLTextarea
  • cHTMLTextbox
  • cHTMLTime
  • cHTMLUpload
  • cHTMLVideo
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cHTMLSelectElement

cHTMLSelectElement class represents a select element.

cHTML
Extended by cHTMLFormElement
Extended by cHTMLSelectElement

Direct known subclasses

cHTMLInputSelectElement
Package: Core\GUI\HTML
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Simon Sprankel
Located at classes/html/class.html.selectelement.php
Methods summary
public
# __construct( string $name, integer $width = '', string $id = '', boolean $disabled = false, string $tabindex = NULL, string $accesskey = '', string $class = '' )

Constructor. Creates an HTML select field (aka "DropDown").

Constructor. Creates an HTML select field (aka "DropDown").

Parameters

$name
string
$name Name of the element
$width
integer
$width Width of the select element
$id
string
$id ID of the element
$disabled
boolean
$disabled Item disabled flag (non-empty to set disabled)
$tabindex
string
$tabindex Tab index for form elements
$accesskey
string
$accesskey Key to access the field
$class
string
$class the class of this element

Overrides

cHTMLFormElement::__construct()
public cHTMLSelectElement
# autoFill( array $stuff )

Automatically creates and fills cHTMLOptionElements

Automatically creates and fills cHTMLOptionElements

Array format: $stuff = array( array('value', 'title'), array('value', 'title') );

or regular key => value arrays: $stuff = array( 'value' => 'title', 'value' => 'title' );

Parameters

$stuff
array
$stuff Array with all items

Returns

cHTMLSelectElement
$this
public cHTMLSelectElement
# addOptionElement( string $index, cHTMLOptionElement $element )

Adds an cHTMLOptionElement to the number of choices at the specified position.

Adds an cHTMLOptionElement to the number of choices at the specified position.

Parameters

$index
string
$index Index of the element
$element
cHTMLOptionElement
$element Filled cHTMLOptionElement to add

Returns

cHTMLSelectElement
$this
public cHTMLSelectElement
# appendOptionElement( cHTMLOptionElement $element )

Appends a cHTMLOptionElement to the number of choices.

Appends a cHTMLOptionElement to the number of choices.

Parameters

$element
cHTMLOptionElement
$element Filled cHTMLOptionElement to add

Returns

cHTMLSelectElement
$this
public cHTMLSelectElement
# setMultiselect( )

Defines that this select element is a multiselect element.

Defines that this select element is a multiselect element.

Returns

cHTMLSelectElement
$this
public cHTMLSelectElement
# setSize( mixed $size )

Defines the size of this select element.

Defines the size of this select element.

Returns

cHTMLSelectElement
$this
public cHTMLSelectElement
# setDefault( string $lvalue )

Sets a specific cHTMLOptionElement to the selected state.

Sets a specific cHTMLOptionElement to the selected state.

Parameters

$lvalue
string
$lvalue Specifies the "value" of the cHTMLOptionElement to set

Returns

cHTMLSelectElement
$this
public string
# getDefault( )

Search for the selected elements

Search for the selected elements

Returns

string
bool "lvalue" or false
public cHTMLSelectElement
# setSelected( array $elements )

Sets specified elements as selected (and all others as unselected)

Sets specified elements as selected (and all others as unselected)

Parameters

$elements
array
$elements Array with "values" of the cHTMLOptionElement to set

Returns

cHTMLSelectElement
$this for chaining
public string
# toHtml( )

Renders the select box

Renders the select box

Returns

string
Rendered HTML
Methods inherited from cHTMLFormElement
setAccessKey(), setDisabled(), setTabindex()
Methods inherited from cHTML
__toString(), _appendContent(), _getAttrString(), _parseAttributes(), _setContent(), addRequiredScript(), advanceID(), appendStyleDefinition(), appendStyleDefinitions(), attachEventDefinition(), display(), fillCloseSkeleton(), fillSkeleton(), getAttribute(), getAttributes(), getID(), removeAttribute(), render(), setAlt(), setAttribute(), setAttributes(), setClass(), setEvent(), setGenerateXHTML(), setID(), setStyle(), setTag(), toHTML(), unsetEvent(), updateAttribute(), updateAttributes()
Properties summary
protected array $_options array()
#

All cHTMLOptionElements

All cHTMLOptionElements

Properties inherited from cHTML
$_attributes, $_content, $_contentlessTag, $_eventDefinitions, $_generateXHTML, $_idCounter, $_requiredScripts, $_skeletonClose, $_skeletonOpen, $_skeletonSingle, $_styleDefinitions, $_styleDefs, $_tag
CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0