[TASK] Sync persistence folder scheme with FLOW3
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / ObjectMonitoringInterface.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25 /**
26 * An interface how to monitor changes on an object and its properties. All domain objects which should be persisted need to implement the below interface.
27 *
28 * @see Tx_Extbase_DomainObject_AbstractEntity
29 * @see Tx_Extbase_DomainObject_AbstractValueObject
30 *
31 * @package Extbase
32 * @subpackage Persistence
33 * @version $ID:$
34 */
35 interface Tx_Extbase_Persistence_ObjectMonitoringInterface {
36
37 /**
38 * Register an object's clean state, e.g. after it has been reconstituted
39 * from the database
40 *
41 * @return void
42 */
43 public function _memorizeCleanState();
44
45 /**
46 * Returns TRUE if the properties were modified after reconstitution
47 *
48 * @return boolean
49 */
50 public function _isDirty();
51
52 }
53 ?>