[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

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

Filter converting URLs in the text to HTML links

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

Defines 1 class

filter_urltolink:: (5 methods):
  filter()
  get_global_config()
  load_global_config()
  convert_urls_into_links()
  filter_urltolink_img_callback()


Class: filter_urltolink  - 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

convert_urls_into_links(&$text)   X-Ref
Given some text this function converts any URLs it finds into HTML links

param: string $text Passed in by reference. The string to be searched for urls.

filter_urltolink_img_callback($link)   X-Ref
Change links to images into embedded images.

This plugin is intended for automatic conversion of image URLs when FORMAT_MOODLE used.

param: $link
return: string



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