[ Index ]
 

Code source de SPIP 1.8.3

Accédez au Source d'autres logiciels libres | Soutenez Angelica Josefina !

title

Body

[fermer]

/ecrire/safehtml/classes/HTMLSax3/ -> Decorators.php (summary)

Decorators for dealing with parser options

Version: $Id: Decorators.php,v 1.1 2004/06/02 14:09:19 hfuecks Exp $
Poids: 363 lignes (11 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 7 classes

XML_HTMLSax3_Trim:: (2 méthodes):
  XML_HTMLSax3_Trim()
  trimData()

XML_HTMLSax3_CaseFolding:: (3 méthodes):
  XML_HTMLSax3_CaseFolding()
  foldOpen()
  foldClose()

XML_HTMLSax3_Linefeed:: (2 méthodes):
  XML_HTMLSax3_LineFeed()
  breakData()

XML_HTMLSax3_Tab:: (2 méthodes):
  XML_HTMLSax3_Tab()
  breakData()

XML_HTMLSax3_Entities_Parsed:: (3 méthodes):
  XML_HTMLSax3_Entities_Parsed()
  breakData()
  html_entity_decode()

XML_HTMLSax3_Entities_Unparsed:: (2 méthodes):
  XML_HTMLSax3_Entities_Unparsed()
  breakData()

XML_HTMLSax3_Escape_Stripper:: (2 méthodes):
  XML_HTMLSax3_Escape_Stripper()
  strip()


Classe: XML_HTMLSax3_Trim  - X-Ref

Trims the contents of element data from whitespace at start and end

XML_HTMLSax3_Trim(&$orig_obj, $orig_method)   X-Ref
Constructs XML_HTMLSax3_Trim

param: object handler object being decorated
param: string original handler method

trimData(&$parser, $data)   X-Ref
Trims the data

param: XML_HTMLSax3
param: string element data

Classe: XML_HTMLSax3_CaseFolding  - X-Ref

Coverts tag names to upper case

XML_HTMLSax3_CaseFolding(&$orig_obj, $orig_open_method, $orig_close_method)   X-Ref
Constructs XML_HTMLSax3_CaseFolding

param: object handler object being decorated
param: string original open handler method
param: string original close handler method

foldOpen(&$parser, $tag, $attrs=array()   X-Ref
Folds up open tag callbacks

param: XML_HTMLSax3
param: string tag name
param: array tag attributes

foldClose(&$parser, $tag, $empty = FALSE)   X-Ref
Folds up close tag callbacks

param: XML_HTMLSax3
param: string tag name

Classe: XML_HTMLSax3_Linefeed  - X-Ref

Breaks up data by linefeed characters, resulting in additional
calls to the data handler

XML_HTMLSax3_LineFeed(&$orig_obj, $orig_method)   X-Ref
Constructs XML_HTMLSax3_LineFeed

param: object handler object being decorated
param: string original handler method

breakData(&$parser, $data)   X-Ref
Breaks the data up by linefeeds

param: XML_HTMLSax3
param: string element data

Classe: XML_HTMLSax3_Tab  - X-Ref

Breaks up data by tab characters, resulting in additional
calls to the data handler

XML_HTMLSax3_Tab(&$orig_obj, $orig_method)   X-Ref
Constructs XML_HTMLSax3_Tab

param: object handler object being decorated
param: string original handler method

breakData(&$parser, $data)   X-Ref
Breaks the data up by linefeeds

param: XML_HTMLSax3
param: string element data

Classe: XML_HTMLSax3_Entities_Parsed  - X-Ref

Breaks up data by XML entities and parses them with html_entity_decode(),
resulting in additional calls to the data handler<br />
Requires PHP 4.3.0+

XML_HTMLSax3_Entities_Parsed(&$orig_obj, $orig_method)   X-Ref
Constructs XML_HTMLSax3_Entities_Parsed

param: object handler object being decorated
param: string original handler method

breakData(&$parser, $data)   X-Ref
Breaks the data up by XML entities

param: XML_HTMLSax3
param: string element data

html_entity_decode($str, $style=ENT_NOQUOTES)   X-Ref
Compatibility with older PHP versions


Classe: XML_HTMLSax3_Entities_Unparsed  - X-Ref

Breaks up data by XML entities but leaves them unparsed,
resulting in additional calls to the data handler<br />

XML_HTMLSax3_Entities_Unparsed(&$orig_obj, $orig_method)   X-Ref
Constructs XML_HTMLSax3_Entities_Unparsed

param: object handler object being decorated
param: string original handler method

breakData(&$parser, $data)   X-Ref
Breaks the data up by XML entities

param: XML_HTMLSax3
param: string element data

Classe: XML_HTMLSax3_Escape_Stripper  - X-Ref

Strips the HTML comment markers or CDATA sections from an escape.
If XML_OPTIONS_FULL_ESCAPES is on, this decorator is not used.<br />

XML_HTMLSax3_Escape_Stripper(&$orig_obj, $orig_method)   X-Ref
Constructs XML_HTMLSax3_Entities_Unparsed

param: object handler object being decorated
param: string original handler method

strip(&$parser, $data)   X-Ref
Breaks the data up by XML entities

param: XML_HTMLSax3
param: string element data



Généré le : Thu Feb 22 22:27:47 2007 par Balluche grâce à PHPXref 0.7