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

Class: HTMLtextareas

Source Location: /HTMLtextareas.php

Class Overview

Strings
   |
   --HTML
      |
      --HTMLtextareas

This class manages HTML Textareas objects.


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 30]
This class manages HTML Textareas objects.

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 41]

Variable that contains switch defining if tag needs to be closed



Tags:

access:  protected

Type:   bool
Overrides:   Array


[ Top ]

$html_tag =  "textarea"

[line 36]

Variable that contains tag



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method HTMLTextareaClose [line 141]

string HTMLTextareaClose( string $this->html_tag)

HTML closing Textarea tag function

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

  1.  <?php
  2.  $oHTML_Textarea            new HTMLtextareas();
  3.  echo $oHTML_Textarea->HTMLTextareaClose();
  4.  // </textarea>
  5.  ?>




Tags:

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


Parameters:

string   $this->html_tag   xHTML tag to be closed

[ Top ]

method HTMLTextareaConstruct [line 195]

string HTMLTextareaConstruct( [string $sTextareaContent = null], [string $name = null], [string $id = null], [string $class = null], [string $style = null], [array $aScript = null], [ $rows = 10], [ $cols = 60])

HTML Textarea construction function

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

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




Tags:

return:  xHTML string corresponding to HTML result
since:  version 1.0
uses:  HTMLtextareas::HTMLTextareaOpen()
uses:  HTMLtextareas::HTMLTextareaClose()


Parameters:

string   $sTextareaContent   textarea 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
   $rows  
   $cols  

[ Top ]

method HTMLTextareaOpen [line 84]

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

xHTML Textarea opening tag function

This function is used to open xHTML Textarea 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.  $oHTML_Textarea new HTMLtextareas();
  4.  echo $oHTML_Textarea->HTMLTextareaOpen(
  5.       "fooName",
  6.       "barID",
  7.       "myClass",
  8.       "myStyle",
  9.       $aScript
  10.  );
  11.  // <textarea 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:  HTMLtextareas::HTMLTextareaConstruct()
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
   $rows  
   $cols  

[ Top ]


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