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

Class: HTMLps

Source Location: /HTMLps.php

Class Overview

Strings
   |
   --HTML
      |
      --HTMLps

This class manages HTMLps objects. This class creates xHTML Paragraphs.


Author(s):

Version:

  • 1.1

Variables

Methods


Inherited Variables

Inherited Methods

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 31]
This class manages HTMLps objects. This class creates xHTML Paragraphs.

Created on 06 may 09

Changes: 1.0 -> 1.1: 21 jul 09 added: file is PEAR compatible




Tags:

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


[ Top ]


Class Variables

$html_needclose =  true

[line 42]

Variable that contains switch defining if tag needs to be closed



Tags:

access:  protected

Type:   bool
Overrides:   Array


[ Top ]

$html_tag =  "p"

[line 37]

Variable that contains tag



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method HTMLPClose [line 133]

string HTMLPClose( string $this->html_tag)

HTML closing P tag function

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

  1.  <?php
  2.  $oHTMLp            new HTMLps();
  3.  echo $oHTMLp->HTMLHClose();
  4.  // </p>
  5.  ?>




Tags:

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


Parameters:

string   $this->html_tag   xHTML tag to be closed

[ Top ]

method HTMLPConstruct [line 187]

string HTMLPConstruct( [string $sParagraphContent = null], [string $name = null], [string $id = null], [string $class = null], [string $style = null], [array $aScript = null])

HTML P construction function

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

  1.  <?php
  2.  $oHTMLp    new HTMLps();
  3.  echo $oHTMLp->HTMLPConstruct(
  4.       $sParagraphContent,
  5.       "pName",
  6.       "pID",
  7.       "pClass",
  8.       "pStyle",
  9.       array(
  10.           "onclick"   =>  "click();"
  11.       )
  12.  );
  13.  // <p name="pName" id="pID" class="pClass" style="pStyle"
  14.  onclick="click();">...</p>
  15.  ?>




Tags:

return:  xHTML string corresponding to HTML result
since:  version 1.0
uses:  HTMLps::HTMLPOpen()
uses:  HTMLps::HTMLPClose()


Parameters:

string   $sParagraphContent   paragraph content
string   $name   xHTML name tag
string   $id   xHTML id tag
string   $class   xHTML class tag
string   $style   xHTML style tag
array   $aScript   array containing scripts data

[ Top ]

method HTMLPOpen [line 85]

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

xHTML P opening tag function

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

  1.  <?php
  2.  $aScript            array("onclick" => "go();");
  3.  $oHTMLp            new HTMLps();
  4.  echo $oHTMLp->HTMLHOpen(
  5.       "fooName",
  6.       "barID",
  7.       "myClass",
  8.       "myStyle",
  9.       $aScript
  10.  );
  11.  // <p name="fooName" id="barID" class="myClass" style="myStyle"
  12.  onclick="go();">
  13.  ?>




Tags:

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


Parameters:

string   $this->html_tag   xHTML tag to be opened
string   $name   xHTML name of the tag
string   $id   xHTML id of the tag
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:21 +0200 by phpDocumentor 1.4.1