[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/filter/emoticon/ -> filter.php (summary)

Filter converting emoticon texts into images

Copyright: 2010 David Mudrak <[email protected]>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 154 lines (5 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

filter_emoticon:: (4 methods):
  filter()
  get_global_config()
  load_global_config()
  replace_emoticons()


Class: filter_emoticon  - X-Ref

filter($text, array $options = array()   X-Ref
Apply the filter to the text

param: string $text to be processed by the text
param: array $options filter options
return: string text after processing

get_global_config($name=null)   X-Ref
Returns the global filter setting

If the $name is provided, returns single value. Otherwise returns all
global settings in object. Returns null if the named setting is not
found.

param: mixed $name optional config variable name, defaults to null for all
return: string|object|null

load_global_config()   X-Ref
Makes sure that the global config is loaded in $this->globalconfig

return: void

replace_emoticons(&$text)   X-Ref
Replace emoticons found in the text with their images

param: string $text to modify
return: void



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1