""
Documentation daCode : daCode webmaster's guide
Chapitre 6. daCode's extension (experimental)

 

Inner workings of the extensions mechanism

At each startup of daCode, the config class is instanciated. During this process, daCode runs throug the array $config->extensions, and for each path, includes the files config.php3 and config.internals. Every variable declared in this files thus become members of the config class.

Then, for each path delared in the extensions parameter, daCode indudes the file include.php3 which includes the real code for the extension.

Last, the LoadClass functio, when asked to load a class, looks in config->overloads to determine if it needs to replace the requested class by another (usually a derived class, but due to weak type checking in PHP, this is not a requirement).