eZ Publish  [4.0]
ezdiffcontainerobjectengine.php
Go to the documentation of this file.
00001 <?php
00002 //
00003 // Definition of eZDiffContainerObjectEngine class
00004 //
00005 // <creation-tag>
00006 //
00007 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00008 // SOFTWARE NAME: eZ Publish
00009 // SOFTWARE RELEASE: 4.0.x
00010 // COPYRIGHT NOTICE: Copyright (C) 1999-2008 eZ Systems AS
00011 // SOFTWARE LICENSE: GNU General Public License v2.0
00012 // NOTICE: >
00013 //   This program is free software; you can redistribute it and/or
00014 //   modify it under the terms of version 2.0  of the GNU General
00015 //   Public License as published by the Free Software Foundation.
00016 //
00017 //   This program is distributed in the hope that it will be useful,
00018 //   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 //   GNU General Public License for more details.
00021 //
00022 //   You should have received a copy of version 2.0 of the GNU General
00023 //   Public License along with this program; if not, write to the Free
00024 //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00025 //   MA 02110-1301, USA.
00026 //
00027 //
00028 // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00029 //
00030 
00031 /*! \file ezdiffcontainerobjectengine.php
00032   eZDiffContainerObjectEngine class
00033 */
00034 
00035 /*!
00036   \class eZDiffContainerObjectEngine ezdiffcontainerobjectengine.php
00037   \ingroup eZDiff
00038   \brief Creates an object containing two versions of a content object.
00039 
00040   The eZDiffEngine class is an abstract class, providing interface and shared code
00041   for the different available DiffEngine.
00042 */
00043 
00044 //include_once( 'lib/ezdiff/classes/ezdiffengine.php' );
00045 
00046 class eZDiffContainerObjectEngine extends eZDiffEngine
00047 {
00048     function eZDiffContainerObjectEngine()
00049     {
00050     }
00051 
00052     /*!
00053       Create containerobject containig content from two versions
00054     */
00055     function createDifferenceObject( $old, $new )
00056     {
00057         //include_once( 'lib/ezdiff/classes/ezdiffcontainerobject.php' );
00058         $container = new eZDiffContainerObject();
00059         $container->setOldContent( $old );
00060         $container->setNewContent( $new );
00061 
00062         return $container;
00063     }
00064 }
00065 
00066 ?>