.

ClickTrackInjecter Class Reference

Helper class for click track injction. More...

List of all members.

Public Member Functions

  __construct ($notification, $source)
  callback ($matches)

Detailed Description

Helper class for click track injction.

Definition at line 5 of file notifications.model.php.


Constructor & Destructor Documentation

ClickTrackInjecter::__construct ( notification,
source  
)

Definition at line 9 of file notifications.model.php.

00009                                                             {
00010                 $this->notification = $notification;
00011                 $this->source = $source;
00012         }

Member Function Documentation

ClickTrackInjecter::callback ( matches  ) 

Definition at line 14 of file notifications.model.php.

00014                                             {
00015                 // $matches[2] => URL
00016                 $old_url = $matches[2]; 
00017                 $new_url = $this->notification->create_click_track_link($this->source, $old_url);
00018                 return "<a{$matches[1]}href=\"$new_url\"{$macthes[3]}>";                
00019         }

The documentation for this class was generated from the following file: