3 //require_once 'MTrack/Wiki.php';
9 /** Revision or changeset identifier for this particular file */
12 /** commit message associated with this revision */
15 /** who committed this revision */
18 /** when this revision was committed */
21 /** files affected in this event; may be null, but otherwise
22 * will be an array of MTrackSCMFileEvent */
26 function changelogOneToHtml()
28 list($one) = explode("\n", $this->changelog);
29 return htmlspecialchars($one);
31 function changelogToHtml()
33 return htmlspecialchars($this->changelog);
36 function changeByToHtml($linkHandler)
38 return $linkHandler->username($this->changeby, array('no_image' => true));
39 //mtrack_username($d->changeby, array('size' => 16)) <<< might add size here as an arg..
41 function ctimeToHtml($linkHandler)
43 return $linkHandler->date($this->ctime);
45 function changeset($linkHandler)
47 return $linkHandler->changeset($this->rev, $this->repo);
50 * return the changeby as a RFC address..
53 function changebyToEmail()
55 require_once 'Mail/RFC822.php';
57 $addr = $m->parseAddressList($this->changeby);
59 return $addr[0]->mailbox.'@'.$addr[0]->host;