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 cHTMLButton

cHTMLButton class represents a button.

cHTML
Extended by cHTMLFormElement
Extended by cHTMLButton
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.button.php
Methods summary
public
# __construct( string $name, string $title = '', string $id = '', string $disabled = false, string $tabindex = NULL, string $accesskey = '', string $mode = 'submit', string $class = '' )

Constructor. Creates an HTML button.

Constructor. Creates an HTML button.

Creates a submit button by default, can be changed using setMode.

Parameters

$name
string
$name Name of the element
$title
string
$title Title of the button
$id
string
$id ID of the element
$disabled
string
$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
$mode
string
$mode Mode of button
$class
string
$class the class of this element

Overrides

cHTMLFormElement::__construct()
public cHTMLButton
# setTitle( string $title )

Sets the title (caption) for the button

Sets the title (caption) for the button

Parameters

$title
string
$title The title to set

Returns

cHTMLButton
$this
public cHTMLButton
# setMode( string $mode )

Sets the mode (submit or reset) for the button

Sets the mode (submit or reset) for the button

Parameters

$mode
string
$mode Either 'submit', 'reset' or 'image'.

Returns

cHTMLButton
$this
public cHTMLButton
# setImageSource( string $src )

Set the image src if mode type is "image"

Set the image src if mode type is "image"

Parameters

$src
string
$mode Image path.

Returns

cHTMLButton
$this
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 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