xplo.re Medusa Core Framework 3.1
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • A
  • COL
  • COLGROUP
  • DIV
  • FIELDSET
  • FORM
  • IMG
  • INPUT
  • LABEL
  • LEGEND
  • LI
  • OL
  • OPTGROUP
  • P
  • SCRIPT
  • SELECT
  • TABLE
  • TBODY
  • TD
  • TEXTAREA
  • TFOOT
  • TH
  • THEAD
  • TR
  • UL

Class INPUT

Input tag.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Set\Mutable implements Core\Mutator
Extended by Core\View\Driver\htmlbuilder\Node
Extended by Core\View\Driver\htmlbuilder\Tags\INPUT
Namespace: Core\View\Driver\htmlbuilder\Tags
Package: Core\View\HTMLBuilder\Tags
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at View/Driver/htmlbuilder/Tags/INPUT.inc.php

Methods summary

protected
# __construct( Core\View\Driver\htmlbuilder $proxy, string $type, string $subType, array $classNames, string $id, array $extraArguments = null )

Node constructor.

Node constructor.

Supported extra arguments:

  1. Value of input field, stored as value attribute.

Parameters

$proxy
HTML Builder proxy instance that created this node.
$type
HTML tag name of element.
$subType
Specification of HTML tag, i.e. the type of an input.
$classNames
Array of class names to assign to the node.
$id
Unique ID of node.
$extraArguments
Array of additional arguments passed on from the factory method.

Since

3.0

Overrides

Core\View\Driver\htmlbuilder\Node::__construct
public string
# __toString( )

Renders the HTML code for the node.

Renders the HTML code for the node.

Returns

string
Generated HTML code for the node.

Since

3.0

Overrides

Core\View\Driver\htmlbuilder\Node::__toString
protected
# _prepareAttributes( )

Prepares attributes for rendering.

Prepares attributes for rendering.

Sets name attribute to ID and updates the ID for radio button groups that share the same name but differ by value.

Since

3.0
public
# setEnabled( boolean $isEnabled )

Sets the enabled-state of the input. A disabled input is represented by an existing disabled attribute.

Sets the enabled-state of the input. A disabled input is represented by an existing disabled attribute.

Parameters

$isEnabled
If set to false, the input will be disabled.

Returns


$this

Since

3.0
public
# setName( string $name )

Sets the name of the input. Stored as the ID instead; the name attribute of an input always equals the ID.

Sets the name of the input. Stored as the ID instead; the name attribute of an input always equals the ID.

Parameters

$name
New name to set.

Returns


$this

Since

3.0
public
# setState( boolean $value )

Sets the state flag of the input. Only applies to check boxes and radio buttons. An input is marked as checked by an existing checked attribute.

Sets the state flag of the input. Only applies to check boxes and radio buttons. An input is marked as checked by an existing checked attribute.

Parameters

$value
New state flag to set.

Returns


$this

Since

3.0
public
# setValue( mixed $value )

Sets the default input value. Stored as value attribute.

Sets the default input value. Stored as value attribute.

Parameters

$value
New input value to set.

Returns


$this

Since

3.0

Methods inherited from Core\View\Driver\htmlbuilder\Node

__clone(), _parseClasses(), addClass(), append(), cdata(), derive(), extend(), id(), issetStyle(), js(), jsCDATA(), safeID(), setAllowsShortTag(), setAttribute(), setAttributes(), setId(), setStyle(), setTitle(), text(), verbatim()

Methods inherited from Core\Set\Mutable

__set(), __unset()

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), attachMethod(), chain(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\View\Driver\htmlbuilder\Node

AllowsInnerNL, AllowsOuterNL, AllowsShortTag

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

Properties inherited from Core\View\Driver\htmlbuilder\Node

$_id, $_safeID, $_v_attributeClass, $_v_attributes, $_v_children, $_v_classes, $_v_proxy, $_v_styles, $_v_type

Magic properties inherited from Core\View\Driver\htmlbuilder\Node

$attributeClass, $attributes, $classes, $id, $proxy, $safeID, $styles, $type

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.1 API documentation generated by ApiGen