예제 #1
0
파일: eztexttype.php 프로젝트: legende91/ez
 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;
 }
예제 #2
0
 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;
 }