Class fwConverter

Description

A class to provide tools to convert string

  • author: $Author: jderusse $
  • version: $Rev: 1720 $ ($Date: 2007-11-15 14:48:48 +0100 (jeu., 15 nov. 2007) $)
  • copyright: 2007 - JetMultimedia France - http://www.jetmultimedia.fr
  • license: GNU Public License

Located in /fw/converter.class.php5 (line 30)


	
			
Method Summary
 static string data2url ( $data)
 static string dom2Wall (DOMDocument $dom)
 static DOMDocument html2Dom (string $html)
 static string html2Wall (string $html)
 static string node2HtmlAttributes (DOMNode $node, [array $allowAttributes = array()])
 static string nodeConvert (DOMNode $node, array $convert, [string $space = ''])
 static string text2JSString ( $str)
 static array url2data ( $url)
Methods
static data2url (line 51)

Convert datas to url_encode

  • access: public
string data2url ( $data)
  • $data
static dom2Wall (line 138)

Convert an DOMDocument text to WALL

  • access: public
string dom2Wall (DOMDocument $dom)
  • DOMDocument $dom: original document
static html2Dom (line 116)

Convert a html text to DOMDocument

  • access: public
DOMDocument html2Dom (string $html)
  • string $html: original string
static html2Wall (line 98)

Convert a html text to WALL

  • access: public
string html2Wall (string $html)
  • string $html: original string
static node2HtmlAttributes (line 423)

Convert DOMNode to a list of HTML attributes

  • access: private
string node2HtmlAttributes (DOMNode $node, [array $allowAttributes = array()])
  • DOMNode $node: node to convert
  • array $allowAttributes: list of allowed attributes for the node
static nodeConvert (line 351)

Convert a DOMMNode to a HTML tag

  • access: private
string nodeConvert (DOMNode $node, array $convert, [string $space = ''])
  • DOMNode $node: node to convert
  • array $convert: list of conversions
  • string $space: space to indent properly the text
static text2JSString (line 39)

Convert a string to encapsuled javascript string

  • access: public
string text2JSString ( $str)
  • $str
static url2data (line 75)

Convert a url encoded to an array

  • access: public
array url2data ( $url)
  • $url

Documentation generated on Thu, 15 Nov 2007 14:49:15 +0100 by phpDocumentor 1.4.0a2