20 $config =
new stdClass;
21 $config->allowed_filesize =
'2';
22 $config->allowed_attach_size =
'2';
23 $config->allowed_filetypes =
'*.*';
29 $oModuleController->insertTrigger(
'document.insertDocument',
'file',
'controller',
'triggerCheckAttached',
'before');
30 $oModuleController->insertTrigger(
'document.insertDocument',
'file',
'controller',
'triggerAttachFiles',
'after');
31 $oModuleController->insertTrigger(
'document.updateDocument',
'file',
'controller',
'triggerCheckAttached',
'before');
32 $oModuleController->insertTrigger(
'document.updateDocument',
'file',
'controller',
'triggerAttachFiles',
'after');
33 $oModuleController->insertTrigger(
'document.deleteDocument',
'file',
'controller',
'triggerDeleteAttached',
'after');
34 $oModuleController->insertTrigger(
'comment.insertComment',
'file',
'controller',
'triggerCommentCheckAttached',
'before');
35 $oModuleController->insertTrigger(
'comment.insertComment',
'file',
'controller',
'triggerCommentAttachFiles',
'after');
36 $oModuleController->insertTrigger(
'comment.updateComment',
'file',
'controller',
'triggerCommentCheckAttached',
'before');
37 $oModuleController->insertTrigger(
'comment.updateComment',
'file',
'controller',
'triggerCommentAttachFiles',
'after');
38 $oModuleController->insertTrigger(
'comment.deleteComment',
'file',
'controller',
'triggerCommentDeleteAttached',
'after');
40 $oModuleController->insertTrigger(
'editor.deleteSavedDoc',
'file',
'controller',
'triggerDeleteAttached',
'after');
42 $oModuleController->insertTrigger(
'module.deleteModule',
'file',
'controller',
'triggerDeleteModuleFiles',
'after');
44 $oModuleController->insertTrigger(
'module.dispAdditionSetup',
'file',
'view',
'triggerDispFileAdditionSetup',
'before');
59 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
63 if(!
$oModuleModel->getTrigger(
'document.insertDocument',
'file',
'controller',
'triggerCheckAttached',
'before'))
return true;
64 if(!
$oModuleModel->getTrigger(
'document.insertDocument',
'file',
'controller',
'triggerAttachFiles',
'after'))
return true;
65 if(!
$oModuleModel->getTrigger(
'document.updateDocument',
'file',
'controller',
'triggerCheckAttached',
'before'))
return true;
66 if(!
$oModuleModel->getTrigger(
'document.updateDocument',
'file',
'controller',
'triggerAttachFiles',
'after'))
return true;
67 if(!
$oModuleModel->getTrigger(
'document.deleteDocument',
'file',
'controller',
'triggerDeleteAttached',
'after'))
return true;
68 if(!
$oModuleModel->getTrigger(
'comment.insertComment',
'file',
'controller',
'triggerCommentCheckAttached',
'before'))
return true;
69 if(!
$oModuleModel->getTrigger(
'comment.insertComment',
'file',
'controller',
'triggerCommentAttachFiles',
'after'))
return true;
70 if(!
$oModuleModel->getTrigger(
'comment.updateComment',
'file',
'controller',
'triggerCommentCheckAttached',
'before'))
return true;
71 if(!
$oModuleModel->getTrigger(
'comment.updateComment',
'file',
'controller',
'triggerCommentAttachFiles',
'after'))
return true;
72 if(!
$oModuleModel->getTrigger(
'comment.deleteComment',
'file',
'controller',
'triggerCommentDeleteAttached',
'after'))
return true;
74 if(!
$oModuleModel->getTrigger(
'editor.deleteSavedDoc',
'file',
'controller',
'triggerDeleteAttached',
'after'))
return true;
76 if(!
$oModuleModel->getTrigger(
'module.deleteModule',
'file',
'controller',
'triggerDeleteModuleFiles',
'after'))
return true;
78 if(!
$oModuleModel->getTrigger(
'module.dispAdditionSetup',
'file',
'view',
'triggerDispFileAdditionSetup',
'before'))
return true;
80 if(!$oDB->isColumnExists(
'files',
'upload_target_type'))
return true;
83 if(!
$oModuleModel->getTrigger(
'module.procModuleAdminCopyModule',
'file',
'controller',
'triggerCopyModule',
'after'))
return true;
85 if(!$oDB->isColumnExists(
'files',
'cover_image'))
return true;
103 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
107 if(!
$oModuleModel->getTrigger(
'document.insertDocument',
'file',
'controller',
'triggerCheckAttached',
'before'))
108 $oModuleController->insertTrigger(
'document.insertDocument',
'file',
'controller',
'triggerCheckAttached',
'before');
110 if(!
$oModuleModel->getTrigger(
'document.insertDocument',
'file',
'controller',
'triggerAttachFiles',
'after'))
111 $oModuleController->insertTrigger(
'document.insertDocument',
'file',
'controller',
'triggerAttachFiles',
'after');
113 if(!
$oModuleModel->getTrigger(
'document.updateDocument',
'file',
'controller',
'triggerCheckAttached',
'before'))
114 $oModuleController->insertTrigger(
'document.updateDocument',
'file',
'controller',
'triggerCheckAttached',
'before');
116 if(!
$oModuleModel->getTrigger(
'document.updateDocument',
'file',
'controller',
'triggerAttachFiles',
'after'))
117 $oModuleController->insertTrigger(
'document.updateDocument',
'file',
'controller',
'triggerAttachFiles',
'after');
119 if(!
$oModuleModel->getTrigger(
'document.deleteDocument',
'file',
'controller',
'triggerDeleteAttached',
'after'))
120 $oModuleController->insertTrigger(
'document.deleteDocument',
'file',
'controller',
'triggerDeleteAttached',
'after');
122 if(!
$oModuleModel->getTrigger(
'comment.insertComment',
'file',
'controller',
'triggerCommentCheckAttached',
'before'))
123 $oModuleController->insertTrigger(
'comment.insertComment',
'file',
'controller',
'triggerCommentCheckAttached',
'before');
125 if(!
$oModuleModel->getTrigger(
'comment.insertComment',
'file',
'controller',
'triggerCommentAttachFiles',
'after'))
126 $oModuleController->insertTrigger(
'comment.insertComment',
'file',
'controller',
'triggerCommentAttachFiles',
'after');
128 if(!
$oModuleModel->getTrigger(
'comment.updateComment',
'file',
'controller',
'triggerCommentCheckAttached',
'before'))
129 $oModuleController->insertTrigger(
'comment.updateComment',
'file',
'controller',
'triggerCommentCheckAttached',
'before');
131 if(!
$oModuleModel->getTrigger(
'comment.updateComment',
'file',
'controller',
'triggerCommentAttachFiles',
'after'))
132 $oModuleController->insertTrigger(
'comment.updateComment',
'file',
'controller',
'triggerCommentAttachFiles',
'after');
134 if(!
$oModuleModel->getTrigger(
'comment.deleteComment',
'file',
'controller',
'triggerCommentDeleteAttached',
'after'))
135 $oModuleController->insertTrigger(
'comment.deleteComment',
'file',
'controller',
'triggerCommentDeleteAttached',
'after');
137 if(!
$oModuleModel->getTrigger(
'editor.deleteSavedDoc',
'file',
'controller',
'triggerDeleteAttached',
'after'))
138 $oModuleController->insertTrigger(
'editor.deleteSavedDoc',
'file',
'controller',
'triggerDeleteAttached',
'after');
140 if(!
$oModuleModel->getTrigger(
'module.deleteModule',
'file',
'controller',
'triggerDeleteModuleFiles',
'after'))
141 $oModuleController->insertTrigger(
'module.deleteModule',
'file',
'controller',
'triggerDeleteModuleFiles',
'after');
143 if(!
$oModuleModel->getTrigger(
'module.dispAdditionSetup',
'file',
'view',
'triggerDispFileAdditionSetup',
'before'))
144 $oModuleController->insertTrigger(
'module.dispAdditionSetup',
'file',
'view',
'triggerDispFileAdditionSetup',
'before');
146 if(!$oDB->isColumnExists(
'files',
'upload_target_type')) $oDB->addColumn(
'files',
'upload_target_type',
'char',
'3');
149 if(!
$oModuleModel->getTrigger(
'module.procModuleAdminCopyModule',
'file',
'controller',
'triggerCopyModule',
'after'))
151 $oModuleController->insertTrigger(
'module.procModuleAdminCopyModule',
'file',
'controller',
'triggerCopyModule',
'after');
154 if(!$oDB->isColumnExists(
'files',
'cover_image')) $oDB->addColumn(
'files',
'cover_image',
'char',
'1',
'N');
getController($module_name)
getInstance($db_type=NULL)