grommunio /
grommunio-web
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * StickyNote ItemModule |
||
| 4 | * Module which openes, creates, saves and deletes an item. It |
||
| 5 | * extends the Module class. |
||
| 6 | */ |
||
| 7 | class StickyNoteItemModule extends ItemModule |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Constructor |
||
| 11 | * @param int $id unique id. |
||
| 12 | * @param array $data list of all actions. |
||
| 13 | */ |
||
| 14 | function __construct($id, $data) |
||
| 15 | { |
||
| 16 | parent::__construct($id, $data); |
||
| 17 | |||
| 18 | $this->properties = $GLOBALS["properties"]->getStickyNoteProperties(); |
||
| 19 | |||
| 20 | $this->plaintext = true; |
||
| 21 | } |
||
| 22 | } |
||
| 23 | ?> |
||
|
0 ignored issues
–
show
|
|||
| 24 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.