Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class OnlyofficeItemActionObserver extends HookObserver implements HookDocumentItemActionObserverInterface |
||
21 | { |
||
22 | /** |
||
23 | * Constructor |
||
24 | */ |
||
25 | public function __construct() |
||
26 | { |
||
27 | parent::__construct( |
||
28 | "plugin/onlyoffice/lib/onlyofficePlugin.php", |
||
29 | "onlyoffice" |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Create a Onlyoffice edit tools when the Chamilo loads document items |
||
35 | * |
||
36 | * @param HookDocumentItemActionEventInterface $event - the hook event |
||
37 | */ |
||
38 | public function notifyDocumentItemAction(HookDocumentItemActionEventInterface $event) |
||
45 | } |
||
46 | } |
||
48 |