-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathHandler.php
122 lines (102 loc) · 3.01 KB
/
Handler.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace eZ\Publish\SPI\Persistence;
/**
* The main handler for Storage Engine.
*/
interface Handler
{
/**
* @return \eZ\Publish\SPI\Persistence\Content\Handler
*/
public function contentHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Content\Type\Handler
*/
public function contentTypeHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Content\Language\Handler
*/
public function contentLanguageHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Content\Location\Handler
*/
public function locationHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler
*/
public function objectStateHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Content\Location\Trash\Handler
*/
public function trashHandler();
/**
* @return \eZ\Publish\SPI\Persistence\User\Handler
*/
public function userHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Content\Section\Handler
*/
public function sectionHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler
*/
public function urlAliasHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Content\UrlWildcard\Handler
*/
public function urlWildcardHandler();
/**
* @return \eZ\Publish\Core\Persistence\Legacy\URL\Handler
*/
public function urlHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Bookmark\Handler
*/
public function bookmarkHandler();
/**
* @return \eZ\Publish\SPI\Persistence\Notification\Handler
*/
public function notificationHandler();
/**
* @return \eZ\Publish\SPI\Persistence\UserPreference\Handler
*/
public function userPreferenceHandler();
/**
* @return \eZ\Publish\SPI\Persistence\TransactionHandler
*/
public function transactionHandler();
/**
* Begin transaction.
*
* Begins an transaction, make sure you'll call commit or rollback when done,
* otherwise work will be lost.
*
* @deprecated Since 5.3 {@use transactionHandler()->beginTransaction()}
*/
public function beginTransaction();
/**
* Commit transaction.
*
* Commit transaction, or throw exceptions if no transactions has been started.
*
* @throws \RuntimeException If no transaction has been started
*
* @deprecated Since 5.3 {@use transactionHandler()->commit()}
*/
public function commit();
/**
* Rollback transaction.
*
* Rollback transaction, or throw exceptions if no transactions has been started.
*
* @throws \RuntimeException If no transaction has been started
*
* @deprecated Since 5.3 {@use transactionHandler()->rollback()}
*/
public function rollback();
}