git-svn-id: file:///home/shish/svn/shimmie2/trunk@611 7f39781d-f577-437e-ae19-be835c7a54ca
		
			
				
	
	
		
			18 lines
		
	
	
		
			344 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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);
 | 
						|
	}
 | 
						|
}
 | 
						|
?>
 |