| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class OnlyofficeActionObserver extends HookObserver implements HookDocumentActionObserverInterface |
||
| 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 tools |
||
| 35 | * |
||
| 36 | * @param HookDocumentActionEventInterface $event - the hook event |
||
| 37 | */ |
||
| 38 | public function notifyDocumentAction(HookDocumentActionEventInterface $event) |
||
| 45 | } |
||
| 46 | } |
||
| 48 |