Commit | Line | Data |
---|---|---|
b522d4f1 MW |
1 | <?php |
2 | namespace wcf\data; | |
3 | ||
19d026b2 MS |
4 | /** |
5 | * Default interface for DatabaseObject processors. | |
9f959ced | 6 | * |
19d026b2 | 7 | * @author Marcel Werk |
ca4ba303 | 8 | * @copyright 2001-2014 WoltLab GmbH |
19d026b2 MS |
9 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> |
10 | * @package com.woltlab.wcf | |
11 | * @subpackage data | |
9f959ced | 12 | * @category Community Framework |
19d026b2 | 13 | */ |
b522d4f1 | 14 | interface IDatabaseObjectProcessor { |
19d026b2 MS |
15 | /** |
16 | * Creates a new instance of a database object processor. | |
17 | * | |
0ad90fc3 | 18 | * @param \wcf\data\DatabaseObject $object |
19d026b2 | 19 | */ |
b522d4f1 | 20 | public function __construct(DatabaseObject $object); |
19d026b2 MS |
21 | |
22 | /** | |
c9e34cc9 | 23 | * Delegates accesses to inaccessible object properties the processed object. |
01bd2eff | 24 | * |
19d026b2 MS |
25 | * @param string $name |
26 | * @return mixed | |
27 | */ | |
b522d4f1 | 28 | public function __get($name); |
19d026b2 MS |
29 | |
30 | /** | |
c9e34cc9 MS |
31 | * Delegates isset calls for inaccessible object properties to the processed |
32 | * object. | |
19d026b2 MS |
33 | * |
34 | * @param string $name | |
35 | * @return boolean | |
36 | */ | |
b522d4f1 | 37 | public function __isset($name); |
19d026b2 MS |
38 | |
39 | /** | |
82149c3b | 40 | * Delegates inaccessible method calls to the processed database object. |
01bd2eff | 41 | * |
19d026b2 MS |
42 | * @param string $name |
43 | * @param array $arguments | |
44 | * @return mixed | |
45 | */ | |
b522d4f1 MW |
46 | public function __call($name, $arguments); |
47 | } |