3 class MTrackSCMFileEvent
5 /** Name of affected file */
7 /** Change status indicator */
18 /** when used in a string context, just return the filename.
19 * This simplifies explicit object vs. string interpretation
20 * throughout the SCM layer */
21 function __toString() {
25 function changesToHtml()
27 switch($this->status) {
28 case 'D': return 'Deleted';
29 case 'M': return 'Changed lines : ' . ( $this->added ? '+' .$this->added : '') . ' ' . ( $this->removed ? '-' .$this->removed : '');
30 case 'A': return 'Added : ' . ( $this->added ? '+' .$this->added : '') ;
31 default : '??' . $this->status;
38 ($this->status == 'D' ? '<del>' : '') .
39 htmlspecialchars($this->name) .
40 ($this->status == 'D' ? '</del>' : '');