function diff($old, $new, $options = false) { $diff = new eZDiff(); $diff->setDiffEngineType($diff->engineType('text')); $diff->initDiffEngine(); $diffObject = $diff->diff($old->content(), $new->content()); return $diffObject; }
function diff($old, $new, $options = false) { $diff = new eZDiff(); $diff->setDiffEngineType($diff->engineType('container')); $diff->initDiffEngine(); $diffObject = $diff->diff($old, $new); return $diffObject; }
function diff($old, $new, $options = false) { //include_once( 'lib/ezdiff/classes/ezdiff.php' ); $diff = new eZDiff(); $diff->setDiffEngineType($diff->engineType('text')); $diff->initDiffEngine(); $diffObject = $diff->diff($old->content(), $new->content()); return $diffObject; }