Synchronisation
Synchronisation is the most fundamental procedure in the Extension Manager. It's purpose is to read extensions' information from filesystem (extension's system folders) and update related information in the CMS database. Synchronisation routine must be started manually in the Extension Manager by pressing "Refresh" button. When activated it runs through following processes (in given order):
- Loop over all folders in the extensions/ folder, if found a new extension folder, add a new extension record to the CMS database.
- In each extension folder search for file "extension.config.php".
- If found extension's configuration file then parse it's content and update general information (title, description, etc) in the database. This is done both for new and existing extensions.
- Based on configuration file settings search for admin-pages and create/update CMS admin-pages in the database.
- Based on configuration file settings search for templates and create/update CMS templates in the database.
- Create new glossary group named by extension's name.
- Parse folder lang/ content and import glossary from language files. Only one character encoding is chosen - depending on website default language settings.
- In case of new extension only: Parse folder install/ content and run all .sql files into the database.

Deleting an extension
Extension can be manually deleted/uninstalled from Extension Manager. Deletion consist of:- deleting all extension's templates from database
- deleting all extension's admin-pages from database
- deleting extension record from database
- deleting extension folder from filesystem (it may not succeed because of insufficient file permissions)
- deleting glossary: deleting extension's glossary group and all translations in it.
- writing site log entry about deletion
RSS