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

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
      • Driver
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Fault
      • Formatter
        • Driver
      • Incident
        • Exception
      • Reporter
        • 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
    • Type
    • 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 TABLE

Table 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\TABLE

Direct known subclasses

Core\View\Driver\coreui\Element\TBODY, Core\View\Driver\coreui\Element\TFOOT, Core\View\Driver\coreui\Element\THEAD

Namespace: Core\View\Driver\coreui\Element
Package: CoreUI\Element
Since: 3.1
Requires: PHP 5.3
Version: 1.0
Located at View/Driver/coreui/Element/TABLE.inc.php

Methods summary

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

Element constructor.

Element constructor.

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 string
# __toString( )

Renders the HTML code for the element.

Renders the HTML code for the element.

Returns

string
Generated HTML code for the element.

Since

3.1

Overrides

Core\View\Driver\coreui\Element::__toString
public
# add( string $childType )

Similar to Core\View\Driver\coreui\Element\TABLE::addRow() but returns a reference to this instance instead.

Similar to Core\View\Driver\coreui\Element\TABLE::addRow() but returns a reference to this instance instead.

Parameters

$childType
See Core\View\Driver\coreui\Element\TABLE::addRow().

Returns


$this

Since

3.1
public
# addSpanning( string $childType )

Similar to Core\View\Driver\coreui\Element\TABLE::addSpanningRow() but returns a reference to this instance instead.

Similar to Core\View\Driver\coreui\Element\TABLE::addSpanningRow() but returns a reference to this instance instead.

Parameters

$childType
See Core\View\Driver\coreui\Element\TABLE::addRow().

Returns


$this

Since

3.1
public Core\View\Driver\coreui\Element\TR|Core\View\Driver\coreui\Element\TH|Core\View\Driver\coreui\Element
# addRow( string $childType )

Appends a new row to the table.

Appends a new row to the table.

Parameters

$childType

All arguments are flattened into a single array. The first argument is the element descriptor for the row itself. All following arguments are treated in groups of two, the first is the element descriptor for the table cell, that is appended to the new row, the second the value. The value is used verbatim, i.e. text has to be encoded before calling this method.

Layout options from the table are automatically applied.

Returns

Core\View\Driver\coreui\Element\TR|Core\View\Driver\coreui\Element\TH|Core\View\Driver\coreui\Element

Since

3.1
public Core\View\Driver\coreui\Element\TR|Core\View\Driver\coreui\Element\TH|Core\View\Driver\coreui\Element
# addSpanningRow( string $childType )

Adds a new spanning row. A spanning row has a column span that is automatically calculated from the total number of columns a table has.

Adds a new spanning row. A spanning row has a column span that is automatically calculated from the total number of columns a table has.

Parameters

$childType
See Core\View\Driver\coreui\Element\TABLE::addRow().

Returns

Core\View\Driver\coreui\Element\TR|Core\View\Driver\coreui\Element\TH|Core\View\Driver\coreui\Element

Since

3.1
public Core\View\Driver\coreui\Element|Control
# append( Core\View\Driver\coreui\Element|Control|string $element )

Appends a new element or control to the list of child nodes. Adds special handling for appended Core\View\Driver\coreui\Element\TR instances.

Appends a new element or control to the list of child nodes. Adds special handling for appended Core\View\Driver\coreui\Element\TR instances.

Parameters

$element

Element or control instance to add. If a string is given, a new instance is created by delegating the call to the proxy view by calling the Core\View\Driver\coreui\Element\coreui::spawn() method.

Returns

Core\View\Driver\coreui\Element|Control
The element that was added to the list of children.

Since

3.1

Overrides

Core\View\Driver\coreui\Element::append
public integer
# columns( )

Returns the highest number of columns of all rows in this table at time of invocation.

Returns the highest number of columns of all rows in this table at time of invocation.

Returns

integer

Since

3.1
public
# setLayout( mixed $arg1 )

Sets the table layout.

Sets the table layout.

Parameters

$arg1

All arguments are flattened. Each resulting array entry is then treated as "width:alignment" descriptors for the corresponding column.

Returns


$this

Since

3.1
public
# setRowClasses( mixed $class1 )

Sets alternating row classes that are automatically applied to rows.

Sets alternating row classes that are automatically applied to rows.

Parameters

$class1

All arguments are flattened. Each resulting array entry is then treated as a class name. Classes are assigned to table rows in an alternating pattern.

Returns


$this

Since

3.1

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

__clone(), addClass(), addClasses(), 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 array[] $_v_layout

Array of layout specifications for table columns.

Array of layout specifications for table columns.

Since

3.1
#
protected string[] $_v_rowClasses

Array of row classes assigned to rows to create an alternating pattern.

Array of row classes assigned to rows to create an alternating pattern.

Since

3.1
#
protected integer $_v_rows

Current number of table rows.

Current number of table rows.

Since

3.1
# 0
protected Core\View\Driver\coreui\Element[] $_v_spanningRows

Array of spanning rows in the table.

Array of spanning rows in the table.

Since

3.1
# array ()

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 integer $rows

Current number of table rows.

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.2 API documentation generated by ApiGen