Clean up trigger registration code in document, comment, file, editor modules

This commit is contained in:
Kijin Sung 2023-10-02 22:28:16 +09:00
parent 79808ee285
commit f3bc9a2f03
8 changed files with 42 additions and 340 deletions

View file

@ -3,7 +3,7 @@
<grants />
<actions>
<action name="getFileList" type="model" />
<action name="procFileUpload" type="controller" check_csrf="false" />
<action name="procFileIframeUpload" type="controller" />
<action name="procFileImageResize" type="controller" ruleset="imageResize" />
@ -12,12 +12,12 @@
<action name="procFileDownload" type="controller" method="GET|POST" />
<action name="procFileOutput" type="controller" method="GET|POST" />
<action name="procFileGetList" type="controller" permission="root" />
<action name="dispFileAdminList" type="view" admin_index="true" menu_name="file" menu_index="true" />
<action name="dispFileAdminUploadConfig" type="view" menu_name="file" />
<action name="dispFileAdminDownloadConfig" type="view" menu_name="file" />
<action name="dispFileAdminOtherConfig" type="view" menu_name="file" />
<action name="procFileAdminAddCart" type="controller" />
<action name="procFileAdminDeleteChecked" type="controller" ruleset="deleteChecked" />
<action name="procFileAdminInsertUploadConfig" type="controller" ruleset="insertConfig" />
@ -25,6 +25,17 @@
<action name="procFileAdminInsertOtherConfig" type="controller" />
<action name="procFileAdminInsertModuleConfig" type="controller" permission="manager" check_var="target_module_srl" ruleset="fileModuleConfig" />
</actions>
<eventHandlers>
<eventHandler after="document.deleteDocument" class="controller" method="triggerDeleteAttached" />
<eventHandler after="comment.deleteComment" class="controller" method="triggerCommentDeleteAttached" />
<eventHandler after="editor.deleteSavedDoc" class="controller" method="triggerDeleteAttached" />
<eventHandler after="module.deleteModule" class="controller" method="triggerDeleteModuleFiles" />
<eventHandler after="module.procModuleAdminCopyModule" class="controller" method="triggerCopyModule" />
<eventHandler after="document.moveDocumentModule" class="controller" method="triggerMoveDocument" />
<eventHandler before="document.copyDocumentModule.each" class="controller" method="triggerAddCopyDocument" />
<eventHandler before="comment.copyCommentByDocument.each" class="controller" method="triggerAddCopyCommentByDocument" />
<eventHandler before="module.dispAdditionSetup" class="view" method="triggerDispFileAdditionSetup" />
</eventHandlers>
<menus>
<menu name="file">
<title xml:lang="en">File</title>