22 $config =
new stdClass;
24 $config->able_module =
'N';
25 $config->max_level = 30;
29 $config->level_step[$i] = pow($i,2)*90;
32 $config->signup_point = 10;
34 $config->login_point = 5;
36 $config->point_name =
'point';
38 $config->level_icon =
"default";
40 $config->disable_download =
false;
46 $config->insert_document = 10;
48 $config->insert_document_act =
'procBoardInsertDocument';
49 $config->delete_document_act =
'procBoardDeleteDocument';
51 $config->insert_comment = 5;
53 $config->insert_comment_act =
'procBoardInsertComment,procBlogInsertComment';
54 $config->delete_comment_act =
'procBoardDeleteComment,procBlogDeleteComment';
56 $config->upload_file = 5;
58 $config->upload_file_act =
'procFileUpload';
59 $config->delete_file_act =
'procFileDelete';
61 $config->download_file = -5;
62 $config->download_file_act =
'procFileDownload';
64 $config->read_document = 0;
72 $oPointController->cacheActList();
87 if($config->able_module !=
'N')
90 if(!
$oModuleModel->getTrigger(
'member.insertMember',
'point',
'controller',
'triggerInsertMember',
'after'))
return true;
91 if(!
$oModuleModel->getTrigger(
'document.insertDocument',
'point',
'controller',
'triggerInsertDocument',
'after'))
return true;
92 if(!
$oModuleModel->getTrigger(
'document.deleteDocument',
'point',
'controller',
'triggerBeforeDeleteDocument',
'before'))
return true;
93 if(!
$oModuleModel->getTrigger(
'document.deleteDocument',
'point',
'controller',
'triggerDeleteDocument',
'after'))
return true;
94 if(!
$oModuleModel->getTrigger(
'comment.insertComment',
'point',
'controller',
'triggerInsertComment',
'after'))
return true;
95 if(!
$oModuleModel->getTrigger(
'comment.deleteComment',
'point',
'controller',
'triggerDeleteComment',
'after'))
return true;
96 if(!
$oModuleModel->getTrigger(
'file.insertFile',
'point',
'controller',
'triggerInsertFile',
'after'))
return true;
97 if(!
$oModuleModel->getTrigger(
'file.deleteFile',
'point',
'controller',
'triggerDeleteFile',
'after'))
return true;
98 if(!
$oModuleModel->getTrigger(
'file.downloadFile',
'point',
'controller',
'triggerBeforeDownloadFile',
'before'))
return true;
99 if(!
$oModuleModel->getTrigger(
'file.downloadFile',
'point',
'controller',
'triggerDownloadFile',
'after'))
return true;
100 if(!
$oModuleModel->getTrigger(
'member.doLogin',
'point',
'controller',
'triggerAfterLogin',
'after'))
return true;
101 if(!
$oModuleModel->getTrigger(
'module.dispAdditionSetup',
'point',
'view',
'triggerDispPointAdditionSetup',
'after'))
return true;
102 if(!
$oModuleModel->getTrigger(
'document.updateReadedCount',
'point',
'controller',
'triggerUpdateReadedCount',
'after'))
return true;
104 if(!
$oModuleModel->getTrigger(
'document.updateVotedCount',
'point',
'controller',
'triggerUpdateVotedCount',
'after'))
return true;
106 if(!
$oModuleModel->getTrigger(
'document.updateDocument',
'point',
'controller',
'triggerUpdateDocument',
'before'))
return true;
109 if(!
$oModuleModel->getTrigger(
'module.procModuleAdminCopyModule',
'point',
'controller',
'triggerCopyModule',
'after'))
return true;
124 if(!
$oModuleModel->getTrigger(
'member.insertMember',
'point',
'controller',
'triggerInsertMember',
'after'))
125 $oModuleController->insertTrigger(
'member.insertMember',
'point',
'controller',
'triggerInsertMember',
'after');
126 if(!
$oModuleModel->getTrigger(
'document.insertDocument',
'point',
'controller',
'triggerInsertDocument',
'after'))
127 $oModuleController->insertTrigger(
'document.insertDocument',
'point',
'controller',
'triggerInsertDocument',
'after');
128 if(!
$oModuleModel->getTrigger(
'document.deleteDocument',
'point',
'controller',
'triggerBeforeDeleteDocument',
'before'))
129 $oModuleController->insertTrigger(
'document.deleteDocument',
'point',
'controller',
'triggerBeforeDeleteDocument',
'before');
130 if(!
$oModuleModel->getTrigger(
'document.deleteDocument',
'point',
'controller',
'triggerDeleteDocument',
'after'))
131 $oModuleController->insertTrigger(
'document.deleteDocument',
'point',
'controller',
'triggerDeleteDocument',
'after');
132 if(!
$oModuleModel->getTrigger(
'comment.insertComment',
'point',
'controller',
'triggerInsertComment',
'after'))
133 $oModuleController->insertTrigger(
'comment.insertComment',
'point',
'controller',
'triggerInsertComment',
'after');
134 if(!
$oModuleModel->getTrigger(
'comment.deleteComment',
'point',
'controller',
'triggerDeleteComment',
'after'))
135 $oModuleController->insertTrigger(
'comment.deleteComment',
'point',
'controller',
'triggerDeleteComment',
'after');
136 if(!
$oModuleModel->getTrigger(
'file.insertFile',
'point',
'controller',
'triggerInsertFile',
'after'))
137 $oModuleController->insertTrigger(
'file.insertFile',
'point',
'controller',
'triggerInsertFile',
'after');
138 if(!
$oModuleModel->getTrigger(
'file.deleteFile',
'point',
'controller',
'triggerDeleteFile',
'after'))
139 $oModuleController->insertTrigger(
'file.deleteFile',
'point',
'controller',
'triggerDeleteFile',
'after');
140 if(!
$oModuleModel->getTrigger(
'file.downloadFile',
'point',
'controller',
'triggerBeforeDownloadFile',
'before'))
141 $oModuleController->insertTrigger(
'file.downloadFile',
'point',
'controller',
'triggerBeforeDownloadFile',
'before');
142 if(!
$oModuleModel->getTrigger(
'file.downloadFile',
'point',
'controller',
'triggerDownloadFile',
'after'))
143 $oModuleController->insertTrigger(
'file.downloadFile',
'point',
'controller',
'triggerDownloadFile',
'after');
144 if(!
$oModuleModel->getTrigger(
'member.doLogin',
'point',
'controller',
'triggerAfterLogin',
'after'))
145 $oModuleController->insertTrigger(
'member.doLogin',
'point',
'controller',
'triggerAfterLogin',
'after');
146 if(!
$oModuleModel->getTrigger(
'module.dispAdditionSetup',
'point',
'view',
'triggerDispPointAdditionSetup',
'after'))
147 $oModuleController->insertTrigger(
'module.dispAdditionSetup',
'point',
'view',
'triggerDispPointAdditionSetup',
'after');
148 if(!
$oModuleModel->getTrigger(
'document.updateReadedCount',
'point',
'controller',
'triggerUpdateReadedCount',
'after'))
149 $oModuleController->insertTrigger(
'document.updateReadedCount',
'point',
'controller',
'triggerUpdateReadedCount',
'after');
151 if(!
$oModuleModel->getTrigger(
'document.updateVotedCount',
'point',
'controller',
'triggerUpdateVotedCount',
'after'))
152 $oModuleController->insertTrigger(
'document.updateVotedCount',
'point',
'controller',
'triggerUpdateVotedCount',
'after');
154 if(!
$oModuleModel->getTrigger(
'document.updateDocument',
'point',
'controller',
'triggerUpdateDocument',
'before'))
155 $oModuleController->insertTrigger(
'document.updateDocument',
'point',
'controller',
'triggerUpdateDocument',
'before');
157 if(!
$oModuleModel->getTrigger(
'module.procModuleAdminCopyModule',
'point',
'controller',
'triggerCopyModule',
'after'))
159 $oModuleController->insertTrigger(
'module.procModuleAdminCopyModule',
'point',
'controller',
'triggerCopyModule',
'after');
172 $oPointAdminController->cacheActList();
getController($module_name)
recompileCache()
Re-create the cache file.
The parent class of the point module.
moduleInstall()
Additional tasks required to accomplish during the installation.
checkUpdate()
A method to check if the installation has been successful.
getAdminController($module_name)
moduleUpdate()
Execute update.