Hoa central
Public Member Functions | Protected Attributes | List of all members
Hoa_Filter_HtmlEntities Class Reference
Inheritance diagram for Hoa_Filter_HtmlEntities:

Public Member Functions

 filter ($string=null)
 
- Public Member Functions inherited from Hoa_Filter_Abstract
 __construct (Array $args=array())
 
 getFilterArgument ($name)
 
 getFilterArguments ()
 
 filter ($string=null)
 

Protected Attributes

 $arguments
 
- Protected Attributes inherited from Hoa_Filter_Abstract
 $arguments = array()
 

Additional Inherited Members

- Protected Member Functions inherited from Hoa_Filter_Abstract
 _checkArguments ()
 
 getArguments ()
 

Detailed Description

Definition at line 62 of file HtmlEntities.php.

Member Function Documentation

Hoa_Filter_HtmlEntities::filter (   $string = null)

Apply a filter.

public

Parameters
string$stringString needed a filter.
Returns
string

Definition at line 84 of file HtmlEntities.php.

84  {
85 
86  if(PHP_VERSION_ID >= 50203)
87  return htmlentities(
88  (string) $string,
89  $this->getFilterArgument('quoteStyle'),
90  $this->getFilterArgument('charset'),
91  $this->getFilterArgument('doubleEncode')
92  );
93  else
94  return htmlentities(
95  (string) $string,
96  $this->getFilterArgument('quoteStyle'),
97  $this->getFilterArgument('charset')
98  );
99  }
getFilterArgument($name)
Definition: Abstract.php:146

Here is the call graph for this function:

Member Data Documentation

Hoa_Filter_HtmlEntities::$arguments
protected
Initial value:
= array(
'quoteStyle' => 'specify the quote style, see the PHP constants : ENT_COMPAT, ENT_QUOTES, ENT_NOQUOTES.',
'charset' => 'specify charset.',
'doubleEncode' => 'specify if PHP make a double encode (true) or not (false).'
)

Definition at line 69 of file HtmlEntities.php.


The documentation for this class was generated from the following file: