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
 1: <?php
 2: 
 3: /**
 4:  * This file contains the cHTMLHiddenField class.
 5:  *
 6:  * @package Core
 7:  * @subpackage GUI_HTML
 8:  *
 9:  * @author Simon Sprankel
10:  * @copyright four for business AG <www.4fb.de>
11:  * @license http://www.contenido.org/license/LIZENZ.txt
12:  * @link http://www.4fb.de
13:  * @link http://www.contenido.org
14:  *
15:  */
16: 
17: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
18: 
19: /**
20:  * cHTMLHiddenField class represents a hidden form field.
21:  *
22:  * @package Core
23:  * @subpackage GUI_HTML
24:  */
25: class cHTMLHiddenField extends cHTMLFormElement {
26: 
27:     /**
28:      * Constructor to create an instance of this class.
29:      *
30:      * Creates an HTML hidden field.
31:      *
32:      * @param string $name
33:      *         Name of the element
34:      * @param string $value [optional]
35:      *         Title of the button
36:      * @param string $id [optional]
37:      *         ID of the element
38:      */
39:     public function __construct($name, $value = '', $id = '') {
40:         parent::__construct($name, $id);
41:         $this->_contentlessTag = true;
42:         $this->updateAttribute('type', 'hidden');
43:         $this->_tag = 'input';
44: 
45:         $this->setValue($value);
46:     }
47: 
48:     /**
49:      * Sets the value for the field
50:      *
51:      * @param string $value
52:      *         Value of the field
53:      * @return cHTMLHiddenField
54:      *         $this for chaining
55:      */
56:     public function setValue($value) {
57:         $this->updateAttribute('value', $value);
58: 
59:         return $this;
60:     }
61: 
62: }
63: 
CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0