Overview

Packages

  • Geolib

Classes

  • Geo
  • GeoBody
  • GeoCell
  • GeoDebug
  • GeoHead
  • GeoHtml
  • GeoImg
  • GeoLink
  • GeoList
  • GeoSelect
  • GeoTable
  • GeoTag

Functions

  • b
  • div
  • geoAbsLink
  • geoAnchor
  • geoBody
  • geoButton
  • geoCell
  • geoCheckbox
  • geoDb
  • geoEnd
  • geoFieldSet
  • geoForm
  • geoHead
  • geoHidden
  • geoHtml
  • geoif
  • geoIList
  • geoImg
  • geoImgSubmit
  • geoInput
  • geoIsMultiArr
  • geoItem
  • geoJSLink
  • geoLabel
  • geoLegend
  • geolib_autoloader
  • geoLink
  • geoList
  • geoMultiArr
  • geoNoScript
  • geoPassword
  • geoPre
  • geoRadio
  • geoRadios
  • geoScript
  • geoSelect
  • geoStart
  • geoSubmit
  • geoTable
  • geoTabs
  • geoTag
  • geoText
  • geoTextArea
  • geoTrace
  • geoUpload
  • geovar
  • h1
  • h2
  • h3
  • h4
  • i
  • idiv
  • ispan
  • itag
  • p
  • span
  • Overview
  • Package
  • Class

Class GeoTable

Geo - Class to create html table tags

GeoTag
Extended by GeoTable
Package: Geolib
Category: Html_Tag
License: Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
Author: Peter Pitchford peter@geotonics.com
Version: Release: .1
Since: Class available since Release .1
Link: http://geotonics.com/#geolib
Located at classes/GeoTable.php
Methods summary
public
# __construct( array $rows = null, string $class = null, array $rowClasses = null, string $colClasses = null, string $id = null, integer $cellspacing = 0, integer $cellpadding = 0, integer $border = 0, integer $width = null, string $colValigns = null, string $rowValigns = null, string $colAligns = null, string $rowAligns = null )

Class constructor

Class constructor

Parameters

$rows
table content
$class
class of table
$rowClasses
classes for table rows
$colClasses
classes for table columns
$id
id of table
$cellspacing
cellspacing of table
$cellpadding
cellpadding of table
$border
html width of table border
$width
width of table
$colValigns
valigns for table columns (each cell in the column will have this valign value)
$rowValigns
valigns for table rows
$colAligns
aligns for table columns (each cell in the column will have this align value)
$rowAligns
aligns for table rows

Overrides

GeoTag::__construct()
public
# setText( array $rows )

Set table content

Set table content

Parameters

$rows
1 or 2 dimensional array for row content

Overrides

GeoTag::setText()
public
# setTitles( array $titles )

Set table titles

Set table titles

Parameters

$titles
Set Alternative method for setting first row of content.
public
# setColClasses( array $colClasses = null )

Set table column classes

Set table column classes

Parameters

$colClasses

column classes Each row in this array becomes the class foir each cell in the table row

public
# setRowClasses( array $rowClasses = null )

Set table row classes

Set table row classes

Parameters

$rowClasses
row classes
public
# setCellClasses( array $cellClasses = null )

Set table cell classes

Set table cell classes

Parameters

$cellClasses
2 d array of cell classes
public
# setRowStyles( array $rowStyles = null )

Set table row styles

Set table row styles

Parameters

$rowStyles
Styles for each row
public
# setCellStyles( array $cellStyles = null )

Set table cell styles

Set table cell styles

Parameters

$cellStyles
2 d array of cell styles
public
# isRows( array $isRows = null )

Set flag to indicate content style

Set flag to indicate content style

Parameters

$isRows
Flag to indicate content is html, not an array
public
# sortColumns( array $row )

Sort columns of one row

Sort columns of one row

Parameters

$row
row to sort
public
# sortAllColumns( )

Sort all columns. Columns are sorted by title keys. To use this feature, sort and add titles, then sortAllColumns

Sort all columns. Columns are sorted by title keys. To use this feature, sort and add titles, then sortAllColumns

public
# setColAlign( integer $col = 0, GeoTag::$text $colalign = 'right' )

Set align of one column

Set align of one column

Parameters

$col
Column number
$colalign
align for each cell in column
public
# setColValign( integer $col = 0, GeoTag::$text $colvalign = 'top' )

Set valign of one column

Set valign of one column

Parameters

$col
Column number
$colvalign
valign for each cell in column
public
# setColClass( integer $col = 0, GeoTag::$text $colclass = 'colclass' )

Set class of one column

Set class of one column

Parameters

$col
Column number
$colclass
class for each cell in column
public
# setRowAlign( integer $row = 0, GeoTag::$text $rowalign = 'center' )

Set align of one row

Set align of one row

Parameters

$row
Row number
$rowalign
align for row
public
# setRowValign( integer $row = 0, GeoTag::$text $rowvalign = 'top' )

Set valign of one row

Set valign of one row

Parameters

$row
Row number
$rowvalign
valign for each cell in row
public
# setRowClass( integer $row = 0, GeoTag::$text $rowclass = 'rowclass' )

Set class of one row

Set class of one row

Parameters

$row
Row number
$rowclass
class for row
public
# setRowStyle( integer $row = 0, array $rowStyle = 'rowStyle' )

Set style of one row

Set style of one row

Parameters

$row
Row number
$rowStyle
style for each cell in row
public
# tag( array $rows = null, array $altcontent = null )

Print table tag

Print table tag

Parameters

$rows
Content for table
$altcontent
Alernative content (Only used if table content is empty
Methods inherited from GeoTag
baseTag(), init(), setAtt()
Properties summary
protected array $rows
# array()
Properties inherited from GeoTag
$atts, $text
API documentation generated by ApiGen