Wikiv9 Developer's Manual ⇒ Installer  

Glossary
The Project
Install
Dragonfly admin interface
Dragonfly public view
Dragonfly Themes
Build local server
Running Dragonfly CVS
Tips and Tricks
Rules & Regulations
v9 Developer's Manual
v10 Developer's manual
13.1: Installer Parent

DragonflyCMS features an installer class to facilitate new install and upgrade processes. It offers a wide range of options to support as many as possible basic and advanced operations.
We should understand how it works before we start using it.

Table of content

Classes and data files used

Here is the list of files where the installer will be launched from:
  • Core-Level: install/step3.php for DragonflyCMS install or upgrades
  • Module-Level: admin/modules/modules.php for a module install or upgrades
Here is the list of classes and files used for a Module-Level process: If you have noticed, in our SQL handling wiki entry we have explained how to create a table, but we will learn to use a different way as well as positive and negative aspects.

Data flow diagram

During a module install or upgrades, this is basically the internal data flow:
cpg_inst.php - + - > db_check - -> installer - - > RDBMS dedicated manager
data.inc - - - ^
Its always possible, at any time, to manually inject data directly into the installer:
cpg_inst.php - -> $installer->add_query() - - > RDBMS dedicated manager
As well as bypassing all of the above tools for an immediate data transaction, useful for SELECTs:
cpg_inst.php - -> $db->sql_query()

The installer will load into memory any $installer->add_query() and execute all of them, in the same order as they are received, only after $installer->install() is called by DragonflyCMS's core. So, always remember that transactions requested with $installer->add_query() are not going to be immediately available, eg we cannot SELECT or UPDATE them until $installer->install() is executed.

How and when use it

nothing yet

 
Updated: Thursday, September 04, 2008 (12:22:11) by NanoCaiordo
Created:  Wednesday, February 06, 2008 (13:20:20) by NanoCaiordo

stopsoftwarepatents.eu petition banner

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.1518 seconds with 12 DB Queries in 0.0163 seconds
Memory Usage: 1.48 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy