- Initial commit from WCF/LGPL SVN-Repository, skipped history
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / EditableObject.class.php
CommitLineData
11ade432
AE
1<?php
2namespace wcf\data;
3
4/**
5 * Abstract class for all data holder classes.
6 *
7 * @author Marcel Werk
8 * @copyright 2001-2010 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package com.woltlab.wcf
11 * @subpackage data
12 * @category Community Framework
13 */
14interface EditableObject extends StorableObject {
15 /**
16 * Creates a new object.
17 *
18 * @param array $parameters
19 * @return StorableObject
20 */
21 public static function create(array $parameters = array());
22
23 /**
24 * Updates this object.
25 *
26 * @param array $parameters
27 */
28 public function update(array $parameters = array());
29
30 /**
31 * Deletes this object.
32 */
33 public function delete();
34
35 /**
36 * Deletes all given objects.
37 *
38 * @param array $objectIDs
39 * @return integer
40 */
41 public static function deleteAll(array $objectIDs = array());
42}
43?>