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
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • 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 cHTMLFormElement

cHTMLFormElement class represents a form element.

cHTML
Extended by cHTMLFormElement

Direct known subclasses

cHTMLButton, cHTMLCheckbox, cHTMLHiddenField, cHTMLOptionElement, cHTMLPasswordbox, cHTMLRadiobutton, cHTMLSelectElement, cHTMLTextarea, cHTMLTextbox, cHTMLUpload

Indirect 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.formelement.php
Methods summary
public
# __construct( string $name = '', string $id = '', string $disabled = '', string $tabindex = '', string $accesskey = '', string $class = 'text_medium' )

Constructor to create an instance of this class.

Constructor to create an instance of this class.

This is a generic form element, where specific elements should be inherited from this class.

Parameters

$name
string
$name [optional] Name of the element
$id
string
$id [optional] ID of the element
$disabled
string
$disabled [optional] Item disabled flag (non-empty to set disabled)
$tabindex
string
$tabindex [optional] Tab index for form elements
$accesskey
string
$accesskey [optional] Key to access the field
$class
string
$class [optional] CSS class name to set

Overrides

cHTML::__construct()
public cHTMLFormElement
# setDisabled( string $disabled )

Sets the "disabled" attribute of an element. User Agents usually are showing the element as "greyed-out".

Sets the "disabled" attribute of an element. User Agents usually are showing the element as "greyed-out".

Example: $obj->setDisabled('disabled'); $obj->setDisabled('');

The first example sets the disabled flag, the second one removes the disabled flag.

Parameters

$disabled
string
$disabled Sets the disabled-flag if non-empty

Returns

cHTMLFormElement
$this for chaining
public cHTMLFormElement
# setTabindex( integer $tabindex )

Sets the tab index for this element. The tab index needs to be numeric, bigger than 0 and smaller than 32767.

Sets the tab index for this element. The tab index needs to be numeric, bigger than 0 and smaller than 32767.

Parameters

$tabindex
integer
$tabindex Desired tab index

Returns

cHTMLFormElement
$this for chaining
public cHTMLFormElement
# setAccessKey( string $accesskey )

Sets the access key for this element.

Sets the access key for this element.

Parameters

$accesskey
string
$accesskey The length of the access key. May be A-Z and 0-9.

Returns

cHTMLFormElement
$this for chaining
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 inherited from cHTML
$_attributes, $_content, $_contentlessTag, $_eventDefinitions, $_generateXHTML, $_idCounter, $_requiredScripts, $_skeletonClose, $_skeletonOpen, $_skeletonSingle, $_styleDefinitions, $_styleDefs, $_tag
CMS CONTENIDO 4.10.0 API documentation generated by ApiGen 2.8.0