Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • 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 cHTMLOptionElement

cHTMLOptionElement class represents a select option element.

cHTML
Extended by cHTMLFormElement
Extended by cHTMLOptionElement
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.optionelement.php
Methods summary
public
# __construct( string $title, string $value, boolean $selected = false, boolean $disabled = false, string $class = '' )

Constructor to create an instance of this class.

Constructor to create an instance of this class.

Creates an HTML option element.

Parameters

$title
string
$title Displayed title of the element
$value
string
$value Value of the option
$selected
boolean
$selected [optional] If true, element is selected
$disabled
boolean
$disabled [optional] If true, element is disabled
$class
string
$class [optional] the class of this element

Overrides

cHTMLFormElement::__construct()
public cHTMLOptionElement
# setSelected( boolean $selected )

Sets the selected flag

Sets the selected flag

Parameters

$selected
boolean
$selected If true, adds the "selected" attribute

Returns

cHTMLOptionElement
$this for chaining
public boolean
# isSelected( )

Checks whether this option element is selected.

Checks whether this option element is selected.

Returns

boolean
whether this option element is selected
public cHTMLOptionElement
# setDisabled( boolean $disabled )

Sets the disabled flag

Sets the disabled flag

Parameters

$disabled
boolean
$disabled If true, adds the "disabled" attribute

Returns

cHTMLOptionElement
$this for chaining

Overrides

cHTMLFormElement::setDisabled()
public string
# toHtml( )

Renders the option element. Note: the cHTMLSelectElement renders the options by itself.

Renders the option element. Note: the cHTMLSelectElement renders the options by itself.

Returns

string
Rendered HTML

Overrides

cHTML::toHtml()
Methods inherited from cHTMLFormElement
setAccessKey(), 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(), unsetEvent(), updateAttribute(), updateAttributes()
Properties summary
protected string $_title
#

Title to display

Title to display

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