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

Class: HTMLinputs

Source Location: /HTMLinputs.php

Class Overview

Strings
   |
   --HTML
      |
      --HTMLinputs

This class manages HTMLinputs objects. This class creates xHTML inputs.


Author(s):

Version:

  • 1.3

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 34]
This class manages HTMLinputs objects. This class creates xHTML inputs.

Created on 28 apr 09

Changes: 1.2 -> 1.3: 21 jul 09 added: file is PEAR compatible 1.1 -> 1.2: 06 may 09 added: to HTML package 1.0 -> 1.1: 28 apr 09 updated: using $value in place of $elementvalue which is deprecated for HTMLInputOpen()




Tags:

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


[ Top ]


Class Variables

$html_needclose =  false

[line 45]

Variable that contains switch defining if tag needs to be closed



Tags:

access:  protected

Type:   bool
Overrides:   Array


[ Top ]

$html_tag =  "input"

[line 40]

Variable that contains tag



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method HTMLInputClose [line 146]

string HTMLInputClose( string $this->html_tag)

HTML closing Input tag function

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

  1.  <?php
  2.  $oInputs            new HTMLinputs();
  3.  echo $oInputs->HTMLInputClose();
  4.  //
  5.  ?>




Tags:

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


Parameters:

string   $this->html_tag   xHTML tag to be opened

[ Top ]

method HTMLInputConstruct [line 197]

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

HTML Input construction function

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

  1.  <?php
  2.  $oInput    new HTMLinputs();
  3.  echo $oInput->HTMLInputConstruct(
  4.       "fooName",
  5.       "barID",
  6.       "text",
  7.       "barvalue",
  8.       "myClass",
  9.       "myStyle",
  10.       $aScript
  11.  );
  12.  // <input name="fooName" id="barID" type="text" value="barvalue"
  13.  class="myClass" style="myStyle" onfocus="go();">
  14.  ?>




Tags:

return:  xHTML string corresponding to HTML select
since:  version 1.0
uses:  HTMLinputs::HTMLInputOpen()
uses:  HTMLinputs::HTMLInputClose()


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   $type   xHTML type of the input
string   $value   xHTML value of the input
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 ]

method HTMLInputOpen [line 91]

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

xHTML Input opening tag function

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

  1.  <?php
  2.  $aScript            array("onfocus" => "go();");
  3.  $oInputs            new HTMLinputs();
  4.  echo $oInputs->HTMLInputOpen(
  5.       "fooName",
  6.       "barID",
  7.       "text",
  8.       "barvalue",
  9.       "myClass",
  10.       "myStyle",
  11.       $aScript
  12.  );
  13.  // <input name="fooName" id="barID" type="text" value="barvalue"
  14.  class="myClass" style="myStyle" onfocus="go();">
  15.  ?>




Tags:

return:  xHTML string corresponding to opened tag
since:  version 1.0
usedby:  HTMLinputs::HTMLInputConstruct()
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   $type   xHTML type of the input
string   $value   xHTML value of the input
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:19 +0200 by phpDocumentor 1.4.1