Skip to content

classes_lib_controls_table_tr.class

Daniel Spors edited this page Dec 19, 2023 · 3 revisions

Classes in file lib/controls/table/tr.class.php

class Tr

A table row written as div.

Extends: Control » Renderable

Cells

Returns all cells.

Definition: public function Cells()

Returns: array List of Td objects

CountCells

Gets the cell count.

Definition: public function CountCells()

Returns: int Count of cells

CurrentCell

Gets the current cell.

Definition: public function CurrentCell()

Returns: Td The current cell of false if none

FormatCells

Applies the format to all cells.

Definition: public function FormatCells($table=false)

Returns: void

Parameters:

  • Table $table Optional Table object (this Tr belongs to)

GetCell

Get the cell at index.

Definition: public function GetCell($index)

Returns: Td The cell

Parameters:

  • int $index Zero based index

NewCell

Creates a new cell.

Definition: public function NewCell($content=false, $options=false)

Returns: Td The created cell

Parameters:

  • mixed $content Contents for it

  • array $options See Td::__construct for options

SetAlignment

Sets the alignment for all columns.

Definition: public function SetAlignment($alignment)

Returns: static

Parameters:

  • array $alignment Array of alignments for each column l(eft)|r(ight)|c(enter)

WdfRender

OVERRIDE Control::WdfRender

__construct

Definition: public function __construct($options=false)

Returns: NOT DOCUMENTED

Parameters:

  • array $options Currently none
Clone this wiki locally