CodeExplorer_context example
if (!
empty($yi)) { $this->line_stats
['counter'
]['y'
] +=
$yi;
} return $end;
} protected function _block($xbeg,
$xlen,
$ybeg,
$ylen, &
$edits) { $this->
_start_block($this->
_block_header($xbeg,
$xlen,
$ybeg,
$ylen));
foreach ($edits as $edit) { if ($edit->type == 'copy'
) { $this->
_context($edit->orig
);
} elseif ($edit->type == 'add'
) { $this->
_added($edit->closing
);
} elseif ($edit->type == 'delete'
) { $this->
_deleted($edit->orig
);
} elseif ($edit->type == 'change'
) { $this->
_changed($edit->orig,
$edit->closing
);
} else { return $output .
$this->
_endDiff();
} function _block($xbeg,
$xlen,
$ybeg,
$ylen, &
$edits) { $output =
$this->
_startBlock($this->
_blockHeader($xbeg,
$xlen,
$ybeg,
$ylen));
foreach ($edits as $edit) { switch (strtolower(get_class($edit))) { case 'text_diff_op_copy':
$output .=
$this->
_context($edit->orig
);
break;
case 'text_diff_op_add':
$output .=
$this->
_added($edit->final
);
break;
case 'text_diff_op_delete':
$output .=
$this->
_deleted($edit->orig
);
break;
case 'text_diff_op_change':