fembooru/core/events/parselinktemplate.event.php
shish ac2af2d1c0 ParseLinkTemplateEvent, and handlers for text_score, numeric_score and rating
git-svn-id: file:///home/shish/svn/shimmie2/trunk@611 7f39781d-f577-437e-ae19-be835c7a54ca
2007-11-04 08:16:41 +00:00

18 lines
344 B
PHP

<?php
class ParseLinkTemplateEvent extends Event {
var $link;
var $original;
var $image;
public function ParseLinkTemplateEvent($link, $image) {
$this->link = $link;
$this->original = $link;
$this->image = $image;
}
public function replace($needle, $replace) {
$this->link = str_replace($needle, $replace, $this->link);
}
}
?>