Gumbo_Converter_Html

Gumbo_Converter_Abstract
   |
   --Gumbo_Converter_Html

HTML Encode/Decode Converter Class

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Inherited Methods

Class Variables

string $_charset [line 40]
int $_quote_style =  ENT_QUOTES [line 38]

Class Methods

public Gumbo_Converter_Html __construct ( [int $quote_style], [string $charset] ) [line 49]

Constructor

Parameter(s):

  • (int) $quote_style
  • (string) $charset

[ Top ]
public string getCharset ( ) [line 160]

Returns the Character Set


[ Top ]
public int getQuoteStyle ( ) [line 152]

Returns the Quote Style


[ Top ]
public void setCharset ( string $charset ) [line 131]

Sets the character set

Parameter(s):

  • (string) $charset
  • throws:  Gumbo_Exception

[ Top ]
public void setQuoteStyle ( int $style ) [line 106]

Sets the Quote Style

Parameter(s):

  • (int) $style :: ENT_QUOTES, ENT_COMPAT, ENT_NOQUOTES
  • throws:  Gumbo_Exception

[ Top ]
public string toDecode ( string $txt ) [line 84]

Decodes the HTML string

Parameter(s):

  • (string) $txt
  • throws:  Gumbo_Exception

[ Top ]
public string toEncode ( string $txt ) [line 63]

Encodes the HTML string

Parameter(s):

  • (string) $txt
  • throws:  Gumbo_Exception

[ Top ]