19 $oEditorController->insertComponent(
'colorpicker_text',
true);
20 $oEditorController->insertComponent(
'colorpicker_bg',
true);
21 $oEditorController->insertComponent(
'emoticon',
true);
22 $oEditorController->insertComponent(
'url_link',
true);
23 $oEditorController->insertComponent(
'image_link',
true);
24 $oEditorController->insertComponent(
'multimedia_link',
true);
25 $oEditorController->insertComponent(
'quotation',
true);
26 $oEditorController->insertComponent(
'table_maker',
true);
27 $oEditorController->insertComponent(
'poll_maker',
true);
28 $oEditorController->insertComponent(
'image_gallery',
true);
32 $oModuleController->insertTrigger(
'document.insertDocument',
'editor',
'controller',
'triggerDeleteSavedDoc',
'after');
33 $oModuleController->insertTrigger(
'document.updateDocument',
'editor',
'controller',
'triggerDeleteSavedDoc',
'after');
35 $oModuleController->insertTrigger(
'module.dispAdditionSetup',
'editor',
'view',
'triggerDispEditorAdditionSetup',
'before');
37 $oModuleController->insertTrigger(
'display',
'editor',
'controller',
'triggerEditorComponentCompile',
'before');
50 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
54 if(!$oDB->isColumnExists(
"editor_autosave",
"module_srl"))
return true;
55 if(!$oDB->isIndexExists(
"editor_autosave",
"idx_module_srl"))
return true;
58 if(!
$oModuleModel->getTrigger(
'document.insertDocument',
'editor',
'controller',
'triggerDeleteSavedDoc',
'after'))
return true;
59 if(!
$oModuleModel->getTrigger(
'document.updateDocument',
'editor',
'controller',
'triggerDeleteSavedDoc',
'after'))
return true;
61 if(!
$oModuleModel->getTrigger(
'module.dispAdditionSetup',
'editor',
'view',
'triggerDispEditorAdditionSetup',
'before'))
return true;
63 if(!
$oModuleModel->getTrigger(
'display',
'editor',
'controller',
'triggerEditorComponentCompile',
'before'))
return true;
65 if(
$oModuleModel->getTrigger(
'file.getIsPermitted',
'editor',
'controller',
'triggerSrlSetting',
'before'))
return true;
68 if(!
$oModuleModel->getTrigger(
'module.procModuleAdminCopyModule',
'editor',
'controller',
'triggerCopyModule',
'after'))
return true;
70 if(!$oDB->isColumnExists(
"editor_autosave",
"certify_key"))
return true;
71 if(!$oDB->isIndexExists(
'editor_autosave',
'idx_certify_key'))
return true;
87 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
91 if(!$oDB->isColumnExists(
"editor_autosave",
"module_srl"))
92 $oDB->addColumn(
"editor_autosave",
"module_srl",
"number",11);
95 if(!$oDB->isIndexExists(
"editor_autosave",
"idx_module_srl")) $oDB->addIndex(
"editor_autosave",
"idx_module_srl",
"module_srl");
98 if(!
$oModuleModel->getTrigger(
'document.insertDocument',
'editor',
'controller',
'triggerDeleteSavedDoc',
'after'))
99 $oModuleController->insertTrigger(
'document.insertDocument',
'editor',
'controller',
'triggerDeleteSavedDoc',
'after');
100 if(!
$oModuleModel->getTrigger(
'document.updateDocument',
'editor',
'controller',
'triggerDeleteSavedDoc',
'after'))
101 $oModuleController->insertTrigger(
'document.updateDocument',
'editor',
'controller',
'triggerDeleteSavedDoc',
'after');
103 if(!
$oModuleModel->getTrigger(
'module.dispAdditionSetup',
'editor',
'view',
'triggerDispEditorAdditionSetup',
'before'))
104 $oModuleController->insertTrigger(
'module.dispAdditionSetup',
'editor',
'view',
'triggerDispEditorAdditionSetup',
'before');
106 if(!
$oModuleModel->getTrigger(
'display',
'editor',
'controller',
'triggerEditorComponentCompile',
'before'))
107 $oModuleController->insertTrigger(
'display',
'editor',
'controller',
'triggerEditorComponentCompile',
'before');
109 if(
$oModuleModel->getTrigger(
'file.getIsPermitted',
'editor',
'controller',
'triggerSrlSetting',
'before'))
110 $oModuleController->deleteTrigger(
'file.getIsPermitted',
'editor',
'controller',
'triggerSrlSetting',
'before');
113 if(!
$oModuleModel->getTrigger(
'module.procModuleAdminCopyModule',
'editor',
'controller',
'triggerCopyModule',
'after'))
115 $oModuleController->insertTrigger(
'module.procModuleAdminCopyModule',
'editor',
'controller',
'triggerCopyModule',
'after');
119 if(!$oDB->isColumnExists(
'editor_autosave',
'certify_key'))
121 $oDB->addColumn(
'editor_autosave',
'certify_key',
'varchar', 100);
123 if(!$oDB->isIndexExists(
"editor_autosave",
"idx_certify_key"))
125 $oDB->addIndex(
"editor_autosave",
"idx_certify_key",
"certify_key");
recompileCache()
Re-generate the cache file.
getController($module_name)
moduleInstall()
Implement if additional tasks are necessary when installing.
checkUpdate()
a method to check if successfully installed
moduleUpdate()
Execute update.
getInstance($db_type=NULL)
high class of the editor odule
getAdminController($module_name)