|  | 
| context | $context | 
|  | The context we are in. 
 | 
|  | 
| array | $localconfig | 
|  | Any local configuration for this filter in this context. 
 | 
|  | 
|  | 
| static array | $emoticonimgs = array() | 
|  | Internal cache used for replacing. 
 | 
|  | 
| static array | $emoticontexts = array() | 
|  | Internal cache used for replacing. 
 | 
|  | 
◆ filter()
      
        
          | filter_emoticon::filter | ( |  | $text, | 
        
          |  |  | array | $options = array() ) | 
      
 
Apply the filter to the text. 
- See also
- filter_manager\apply_filter_chain() 
- Parameters
- 
  
    | string | $text | to be processed by the text |  | array | $options | filter options |  
 
- Return values
- 
  
    | string | text after processing |  
 
Reimplemented from moodle_text_filter.
 
 
◆ replace_emoticons()
  
  | 
        
          | filter_emoticon::replace_emoticons | ( |  | $text | ) |  |  | protected | 
 
Replace emoticons found in the text with their images. 
- Parameters
- 
  
  
- Return values
- 
  
    | string | the modified result |  
 
 
 
◆ $emoticonimgs
  
  | 
        
          | array filter_emoticon::$emoticonimgs = array() |  | staticprotected | 
 
Internal cache used for replacing. 
Multidimensional array;
- dimension 1: language,
- dimension 2: theme. 
 
 
◆ $emoticontexts
  
  | 
        
          | array filter_emoticon::$emoticontexts = array() |  | staticprotected | 
 
Internal cache used for replacing. 
Multidimensional array;
- dimension 1: language,
- dimension 2: theme. 
 
 
The documentation for this class was generated from the following file: