You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migration/wsc61/quotes.md
+12-26Lines changed: 12 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,27 +5,13 @@ Quotes are now stored client-side in the browser's local storage, allowing synch
5
5
6
6
## Using the New Quote System
7
7
8
-
The interfaces `wcf\data\IMessageQuoteAction` and `wcf\system\message\quote\IMessageQuoteHandler` are no longer required to generate the quotes, and the implemented classes or functions can be completely removed.
9
-
Since the interface `IMessageQuoteHandler` has been deprecated, the ObjectType no longer requires any information about an associated class.
The interface `wcf\system\message\quote\IMessageQuoteHandler` has been modified to now only require the implementation of `getMessage()`.
9
+
This new method is responsible to fetch the message, perform any validation and load embedded objects whenver applicable.
24
10
25
-
- MUST implement the interface `wcf\data\IMessage`.
26
-
- SHOULD implement the interface `wcf\data\IEmbeddedMessageObject`.
11
+
All other methods previously implemented in quote handlers can be removed alongside with the methods required by the now deprecated interface `wcf\data\IMessageQuoteAction`.
27
12
28
-
Using of `WoltLabSuite/Core/Ui/Message/Quote` is no longer required and only `WoltLabSuite/Core/Component/Quote/Message::registerContainer()` should be used so that a message can be quoted
13
+
`WoltLabSuite/Core/Ui/Message/Quote` is now deprecated and may only be used with legacy implementations relying on `wcf\data\IMessageQuoteAction`.
14
+
Updated implementations must use `WoltLabSuite/Core/Component/Quote/Message::registerContainer()` which requires only the container selectors and the name of the object type.
29
15
30
16
```smarty
31
17
<!-- Previous -->
@@ -34,25 +20,25 @@ Using of `WoltLabSuite/Core/Ui/Message/Quote` is no longer required and only `Wo
The functions `MessageQuoteManager::readFormParameters()` and `MessageQuoteManager::saved()` must be called both in the form for creating and editing the entry.
53
-
This is necessary if the text input does support quotes. Regardless of whether the entry itself can be quoted later or not.
38
+
The functions `MessageQuoteManager::readFormParameters()` and `MessageQuoteManager::saved()` must be called in the forms for creating and editing an entry.
39
+
These calls are required whenver a text input supports quotes, regardless of whether the entry itself can be quoted or not.
54
40
55
-
```PHP
41
+
```php
56
42
use wcf\system\message\quote\MessageQuoteManager;
57
43
58
44
class FooAddForm extends \wcf\form\MessageForm {
@@ -64,7 +50,7 @@ class FooAddForm extends \wcf\form\MessageForm {
64
50
65
51
// …
66
52
67
-
// Read the quotes that are to be deleted after the message has been successfully saved
53
+
// Read the quotes that are to be deleted after the message has been successfully saved.
0 commit comments