4 require_once(
_XE_PATH_ .
'modules/comment/comment.item.php');
29 "comments",
"idx_module_list_order", array(
"module_srl",
"list_order"), TRUE
33 $oModuleController->insertTrigger(
'document.deleteDocument',
'comment',
'controller',
'triggerDeleteDocumentComments',
'after');
35 $oModuleController->insertTrigger(
'module.deleteModule',
'comment',
'controller',
'triggerDeleteModuleComments',
'after');
37 $oModuleController->insertTrigger(
'module.dispAdditionSetup',
'comment',
'view',
'triggerDispCommentAdditionSetup',
'before');
39 if(!is_dir(
'./files/cache/tmp'))
56 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
60 if(!
$oModuleModel->getTrigger(
'document.deleteDocument',
'comment',
'controller',
'triggerDeleteDocumentComments',
'after'))
65 if(!
$oModuleModel->getTrigger(
'module.deleteModule',
'comment',
'controller',
'triggerDeleteModuleComments',
'after'))
70 if(!$oDB->isColumnExists(
"comments",
"voted_count"))
74 if(!$oDB->isColumnExists(
"comments",
"notify_message"))
79 if(!
$oModuleModel->getTrigger(
'module.dispAdditionSetup',
'comment',
'view',
'triggerDispCommentAdditionSetup',
'before'))
84 if(!$oDB->isColumnExists(
"comments",
"blamed_count"))
88 if(!$oDB->isColumnExists(
"comment_voted_log",
"point"))
93 if(!$oDB->isIndexExists(
"comments",
"idx_module_list_order"))
98 if(!$oDB->isColumnExists(
"comments",
"status"))
102 if(!$oDB->isIndexExists(
"comments",
"idx_status"))
108 if(!
$oModuleModel->getTrigger(
'module.procModuleAdminCopyModule',
'comment',
'controller',
'triggerCopyModule',
'after'))
113 if(!$oDB->isIndexExists(
"comments",
"idx_parent_srl"))
133 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
137 if(!
$oModuleModel->getTrigger(
'document.deleteDocument',
'comment',
'controller',
'triggerDeleteDocumentComments',
'after'))
139 $oModuleController->insertTrigger(
'document.deleteDocument',
'comment',
'controller',
'triggerDeleteDocumentComments',
'after');
142 if(!
$oModuleModel->getTrigger(
'module.deleteModule',
'comment',
'controller',
'triggerDeleteModuleComments',
'after'))
144 $oModuleController->insertTrigger(
'module.deleteModule',
'comment',
'controller',
'triggerDeleteModuleComments',
'after');
147 if(!$oDB->isColumnExists(
"comments",
"voted_count"))
149 $oDB->addColumn(
"comments",
"voted_count",
"number",
"11");
150 $oDB->addIndex(
"comments",
"idx_voted_count", array(
"voted_count"));
153 if(!$oDB->isColumnExists(
"comments",
"notify_message"))
155 $oDB->addColumn(
"comments",
"notify_message",
"char",
"1");
158 if(!
$oModuleModel->getTrigger(
'module.dispAdditionSetup',
'comment',
'view',
'triggerDispCommentAdditionSetup',
'before'))
160 $oModuleController->insertTrigger(
'module.dispAdditionSetup',
'comment',
'view',
'triggerDispCommentAdditionSetup',
'before');
163 if(!$oDB->isColumnExists(
"comments",
"blamed_count"))
165 $oDB->addColumn(
'comments',
'blamed_count',
'number', 11, 0, TRUE);
166 $oDB->addIndex(
'comments',
'idx_blamed_count', array(
'blamed_count'));
168 if(!$oDB->isColumnExists(
"comment_voted_log",
"point"))
170 $oDB->addColumn(
'comment_voted_log',
'point',
'number', 11, 0, TRUE);
173 if(!$oDB->isIndexExists(
"comments",
"idx_module_list_order"))
176 "comments",
"idx_module_list_order", array(
"module_srl",
"list_order"), TRUE
181 if(!$oDB->isColumnExists(
"comments",
"status"))
183 $oDB->addColumn(
"comments",
"status",
"number", 1, 1, TRUE);
185 if(!$oDB->isIndexExists(
"comments",
"idx_status"))
188 "comments",
"idx_status", array(
"status",
"comment_srl",
"module_srl",
"document_srl"), TRUE
193 if(!
$oModuleModel->getTrigger(
'module.procModuleAdminCopyModule',
'comment',
'controller',
'triggerCopyModule',
'after'))
195 $oModuleController->insertTrigger(
'module.procModuleAdminCopyModule',
'comment',
'controller',
'triggerCopyModule',
'after');
198 if(!$oDB->isIndexExists(
"comments",
"idx_parent_srl"))
200 $oDB->addIndex(
'comments',
'idx_parent_srl', array(
'parent_srl'));
215 if(!is_dir(
'./files/cache/tmp'))
getController($module_name)
getInstance($db_type=NULL)