| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class OnlyofficeActionObserver extends HookObserver implements HookDocumentActionObserverInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Constructor. |
||
| 21 | */ |
||
| 22 | public function __construct() |
||
| 23 | { |
||
| 24 | parent::__construct( |
||
| 25 | 'plugin/onlyoffice/lib/onlyofficePlugin.php', |
||
| 26 | 'onlyoffice' |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Create a Onlyoffice edit tools when the Chamilo loads document tools. |
||
| 32 | * |
||
| 33 | * @param HookDocumentActionEventInterface $event - the hook event |
||
| 34 | */ |
||
| 35 | public function notifyDocumentAction(HookDocumentActionEventInterface $event) |
||
| 43 | } |
||
| 44 | } |
||
| 46 |