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

Class: HTMLtablesRowsCells

Source Location: /HTMLtablesRowsCells.php

Class Overview

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

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


Author(s):

Version:

  • 1.2

Variables

Methods


Inherited Variables

Inherited Methods

Class: HTMLtablesRows

HTMLtablesRows::HTMLTableRowClose()
HTML row closing tag function
HTMLtablesRows::HTMLTableRowConstruct()
HTML Table row tag construction function
HTMLtablesRows::HTMLTableRowOpen()
xHTML Table row opening tag function

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 HTMLtablesRowsCells objects. This class creates xHTML tables rows cells.

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 =  "td"

[line 38]

Variable that contains tag



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method HTMLTableCellClose [line 125]

string HTMLTableCellClose( )

HTML closing cell tag function

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

  1.  <?php
  2.  $oHTMLtablesRowsCells        new HTMLtablesRowsCells();
  3.  echo $oHTMLtablesRowsCells->HTMLTableCellClose();
  4.  // </td>
  5.  ?>




Tags:

return:  xHTML string corresponding to closed tag
since:  version 1.0
usedby:  HTMLtablesRowsCells::HTMLTableCellConstruct()
uses:  HTML::HTMLCloseTag()


[ Top ]

method HTMLTableCellConstruct [line 170]

string HTMLTableCellConstruct( object $oContent, [string $class = null], [string $style = null], [array $aScript = null])

HTML Table cell tag construction function

This function is used to construct a xHTML table cell 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         "Foobar";
  4.  $oHTMLtablesRowsCells new HTMLtablesRowsCells();
  5.  echo $oHTMLtablesRowsCells->HTMLTableCellConstruct();
  6.  // <td>Foobar</td>
  7.  ?>




Tags:

return:  xHTML string corresponding to closed tag
since:  version 1.0
uses:  Strings
uses:  HTMLtablesRowsCells::HTMLTableCellClose()
uses:  HTMLtablesRowsCells::HTMLTableCellOpen()


Parameters:

object   $oContent   content object that will be displayed in cell
string   $class   xHTML class parameter
string   $style   xHTML style parameter
array   $aScript   scripts to be added

[ Top ]

method HTMLTableCellOpen [line 80]

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

xHTML Table cell opening tag function

This function is used to open xHTML table cell 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.  $oHTMLtablesRowsCells new HTMLtablesRowsCells();
  4.  echo $oHTMLtablesRowsCells->HTMLTableCellOpen(
  5.       "passedclass",
  6.       "passedstyle",
  7.       $aScript
  8.  );
  9.  // <td class="passedclass" stype="passedstyle" onfocus="focused();">
  10.  ?>




Tags:

return:  xHTML string corresponding to opened tag
since:  version 1.0
usedby:  HTMLtablesRowsCells::HTMLTableCellConstruct()
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