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 TABLE

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

Direct known subclasses

Core\View\Driver\htmlbuilder\Tags\TBODY, Core\View\Driver\htmlbuilder\Tags\TFOOT, Core\View\Driver\htmlbuilder\Tags\THEAD

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/TABLE.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.

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
# add( string $childType )

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

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

Parameters

$childType
See Core\View\Driver\htmlbuilder\Tags\TABLE::addRow().

Returns


$this

Since

3.0
public Core\View\Driver\htmlbuilder\Tags\TR|Core\View\Driver\htmlbuilder\Tags\TH|Core\View\Driver\htmlbuilder\Node
# 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\htmlbuilder\Tags\TR|Core\View\Driver\htmlbuilder\Tags\TH|Core\View\Driver\htmlbuilder\Node

Since

3.0
public Core\View\Driver\htmlbuilder\Node
# append( Core\View\Driver\htmlbuilder\Node|string $element )

Appends a new node to the list of child nodes. Adds special handling for appended Core\View\Driver\htmlbuilder\Tags\TR instances.

Appends a new node to the list of child nodes. Adds special handling for appended Core\View\Driver\htmlbuilder\Tags\TR instances.

Parameters

$element

Node instance to add. If a string is given, a new instance is created by delegating the call to the proxy view by calling the htmlbuilder::deriven() method.

Returns

Core\View\Driver\htmlbuilder\Node
The node that was added to the list of children.

Since

3.0

Overrides

Core\View\Driver\htmlbuilder\Node::append
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.0
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.0

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

__clone(), __toString(), _parseClasses(), addClass(), 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

protected array[] $_v_layout

Array of layout specifications for table columns.

Array of layout specifications for table columns.

Since

3.0
#
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.0
#
protected integer $_v_rows

Current number of table rows.

Current number of table rows.

Since

3.0
# 0

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

public read-only integer $rows

Current number of table rows.

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