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
  • BUTTON
  • COL
  • COLGROUP
  • DIV
  • FIELDSET
  • FORM
  • IFRAME
  • IMG
  • INPUT
  • LABEL
  • LEGEND
  • LI
  • LINK
  • META
  • OBJECT
  • OL
  • OPTGROUP
  • P
  • PARAM
  • SCRIPT
  • SELECT
  • SOURCE
  • TABLE
  • TBODY
  • TD
  • TEXTAREA
  • TFOOT
  • TH
  • THEAD
  • TR
  • UL
  • VIDEO

Class SELECT

Selection (often drop-down) node.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\View\Driver\coreui\Element implements ArrayAccess, Countable
Extended by Core\View\Driver\coreui\Element\SELECT
Namespace: Core\View\Driver\coreui\Element
Package: CoreUI\Element
Since: 3.1
Requires: PHP 5.3
Version: 1.1
Located at View/Driver/coreui/Element/SELECT.inc.php

Methods summary

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

Element constructor.

Element constructor.

Supported extra arguments:

  1. Name of selection input, stored as name attribute.

  2. Pre-selected value (the corresponding option is automatically determined).

Parameters

$proxy
CoreUI proxy instance that created this element instance.
$type
HTML tag name of element.
$subType
Specification of HTML tag, i.e. the type of an input.
$extraArguments
Array of additional arguments passed on from the factory method.

Since

3.1

Overrides

Core\View\Driver\coreui\Element::__construct
public
# add( string $value, string $displayValue = null, boolean $isSelected = null )

Appends a new option node to the list of child nodes.

Appends a new option node to the list of child nodes.

Parameters

$value

Internal value of the new option. If the value matches the value of the selection (cf. $value property), the option is marked as selected. The value is automatically encoded.

$displayValue

The value of the option box that is shown to the user. Defaults to the internal value if null. The display value is automatically encoded.

$isSelected

If set, selection detection is based on this value, otherwise it is automatically detected based on the value of the new option.

Returns


$this

Since

3.1
public
# addSet( array $set )

Adds a set of new options at once.

Adds a set of new options at once.

Parameters

$set

Associative key-value array of new option values and display values, respectively, to add.

Returns


$this

Since

3.1
public Core\View\Driver\coreui\Element\OPTGROUP
# appendGroup( string $label )

Adds a new option group.

Adds a new option group.

Parameters

$label
Option group label.

Returns

Core\View\Driver\coreui\Element\OPTGROUP

New option group added to selection. To add new options to the group, directly call the corresponding option group methods.

Since

3.1
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.1
public
# setName( string $name )

Sets the name of the input. Stored as name attribute.

Sets the name of the input. Stored as name attribute.

Parameters

$name
New name to set.

Returns


$this

Since

3.1
public
# setValue( mixed $value )

Sets a new pre-selected value.

Sets a new pre-selected value.

Parameters

$value
New value to set.

Returns


$this

Remark

Only applies to options and option groups after setting the value. Existing nodes are left unchanged.


Since

3.1

Methods inherited from Core\View\Driver\coreui\Element

__clone(), __toString(), addClass(), addClasses(), append(), cdata(), clear(), count(), derive(), extend(), hasAttribute(), hasClass(), hide(), id(), insertAt(), issetStyle(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), on(), pop(), push(), removeClass(), setAttribute(), setAttributes(), setStyle(), setTitle(), shift(), text(), unShift(), verbatim()

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\coreui\Element

AllowsInnerNL, AllowsOuterNL, AllowsShortTag

Constants inherited from Core\Object

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

Properties summary

protected mixed $_v_value

Pre-selected value for setting the selected attribute for an option node with matching value.

Pre-selected value for setting the selected attribute for an option node with matching value.

Since

3.1
#

Properties inherited from Core\View\Driver\coreui\Element

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

Magic properties

public read-only mixed $value

Initial value for entry auto-selection.

Magic properties inherited from Core\View\Driver\coreui\Element

$attributes, $classes, $count, $id, $proxy, $styles, $type

Magic properties inherited from Core\Object

$hash, $uuid

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