More PHP Doc comments.

This commit is contained in:
jgen
2014-04-29 17:45:13 -04:00
parent 2bf4c667a7
commit a58bdbdc62
11 changed files with 153 additions and 36 deletions

View File

@@ -13,18 +13,32 @@
* add more emoticons by uploading images into that folder.
*/
/**
* Class Emoticons
*/
class Emoticons extends FormatterExtension {
/**
* @param string $text
* @return string
*/
public function format(/*string*/ $text) {
$data_href = get_base_href();
$text = preg_replace("/:([a-z]*?):/s", "<img src='$data_href/ext/emoticons/default/\\1.gif'>", $text);
return $text;
}
/**
* @param string $text
* @return string
*/
public function strip(/*string*/ $text) {
return $text;
}
}
/**
* Class EmoticonList
*/
class EmoticonList extends Extension {
public function onPageRequest(PageRequestEvent $event) {
if($event->page_matches("emote/list")) {