HTML
[ class tree: HTML ] [ index: HTML ] [ all elements ]

Class: HTMLtablesRows

Source Location: /HTMLtablesRows.php

Class Overview

Strings
   |
   --HTML
      |
      --HTMLtables
         |
         --HTMLtablesRows

This class manages HTMLtablesRows objects. This class creates xHTML tables rows.


Author(s):

Version:

  • 1.2

Variables

Methods


Child classes:

HTMLtablesRowsCells
This class manages HTMLtablesRowsCells objects. This class creates xHTML tables rows cells.

Inherited Variables

Inherited Methods

Class: HTMLtables

HTMLtables::HTMLTableClose()
HTML closing table tag function
HTMLtables::HTMLTableConstruct()
HTML table construction function
HTMLtables::HTMLTableOpen()
xHTML Table opening tag function

Class: HTML

HTML::HTMLCloseTag()
HTML closing tag function
HTML::HTMLOpenTag()
HTML opening tag function

Class: Strings

Strings::__construct()
Construction function
Strings::console()
Console function
Strings::IsUTF8()
UTF8 detection function
Strings::QuoteStrip()
Quotes stripping function
Strings::RemoveAccent()
Accents removal function
Strings::RemoveSpaces()
Spaces removal function
Strings::stringHasNumbers()
Numbers detection function
Strings::ToUTF8()
UTF8 conversion function
Strings::ucwordsw()
Special uppercase function

Class Details

[line 32]
This class manages HTMLtablesRows objects. This class creates xHTML tables rows.

Created on 08 apr 09

Changes: 1.1 -> 1.2: 21 jul 09 added: file is PEAR compatible 1.0 -> 1.1: 06 may 09 added: to HTML package




Tags:

author:  Pierre-Dominique Vienne <pvienne@me.com>
version:  1.2
license:  GNU Public License


[ Top ]


Class Variables

$html_needclose =  true

[line 43]

Variable that contains switch defining if tag needs to be closed



Tags:

access:  protected

Type:   bool
Overrides:   Array


[ Top ]

$html_tag =  "tr"

[line 38]

Variable that contains tag



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method HTMLTableRowClose [line 124]

string HTMLTableRowClose( )

HTML row closing tag function

This function is used to close xHTML row tags. Result is stored in $this->html_output (added to the end of the string) and returned.

  1.  <?php
  2.  $oHTMLtablesRows            new HTMLtablesRows();
  3.  echo $oHTMLtablesRows->HTMLTableRowClose();
  4.  // </tr>
  5.  ?>




Tags:

return:  xHTML string corresponding to closed tag
since:  version 1.0
usedby:  HTMLtablesRows::HTMLTableRowConstruct()
uses:  HTML->HTMLCloseTag()


[ Top ]

method HTMLTableRowConstruct [line 178]

string HTMLTableRowConstruct( array $aCells, [string $class = null], [string $style = null], [array $aScript = null])

HTML Table row tag construction function

This function is used to construct a xHTML table row Result is stored in $this->html_output (added to the end of the string) and returned.

  1.  <?php
  2.  $oStrings        new Strings();
  3.  $oStrings->value "This is a test";
  4.  $aCellParameters array("class" => "MyClass");
  5.  $aContent        array(array($oStrings$aCellParameters));
  6.  $oHTMLRow        new HTMLtablesRows();
  7.  echo $oHTMLRow->HTMLTableRowConstruct($aContent);
  8.  // <tr><td class="MyClass">This is a test</td></tr>
  9.  ?>




Tags:

return:  xHTML string corresponding to closed tag
since:  version 1.0
uses:  HTMLtablesRows_Cells::HTMLTableCellConstruct()
uses:  HTMLtablesRows::HTMLTableRowClose()
uses:  HTMLtablesRows::HTMLTableRowOpen()


Parameters:

array   $aCells   array containing cells content. Array structure is array(array($oCell1content, $aCell1parameters), ... , array($oCellncontent,$aCellnparameters)). $aCellnparameter structure: array($parametername => $value) (i.e.: array("class" => "myclass"))
string   $class   xHTML class parameter
string   $style   xHTML style parameter
array   $aScript   scripts to be added

[ Top ]

method HTMLTableRowOpen [line 80]

string HTMLTableRowOpen( [string $class = null], [string $style = null], [array $aScript = null], string $this->html_tag, bool $this->html_needclose)

xHTML Table row opening tag function

This function is used to open xHTML table row tags. Result is stored in $this->html_output (added to the end of the string) and returned.

  1.  <?php
  2.  $aScript              array("onfocus" => "focused();");
  3.  $oHTMLtablesRows    new HTMLtablesRows();
  4.  echo $oHTMLtablesRows->HTMLTableRowOpen(
  5.       "passedclass",
  6.       "passedstyle",
  7.       $aScript
  8.  );
  9.  // <tr class="passedclass" stype="passedstyle" onfocus="focused();">
  10.  ?>




Tags:

return:  xHTML string corresponding to opened tag
since:  version 1.0
usedby:  HTMLtablesRows::HTMLTableRowConstruct()
uses:  HTML::HTMLOpenTag()


Parameters:

string   $this->html_tag   xHTML tag to be opened
string   $class   xHTML class parameter
string   $style   xHTML style parameter
array   $aScript   scripts to be added
bool   $this->html_needclose   switch defining if the tag needs to be closed

[ Top ]


Documentation generated on Wed, 26 Aug 2009 12:30:24 +0200 by phpDocumentor 1.4.1