Plugins management in PHP
[30 mn de lecture - paru le 11/17/2004 2:01:04 PM - Public : Expert]
|
   
|
Auteur
Summary
The PHP developers which carry out complex applications are often confronted with problems of dynamic management of plugins as soon as that they wish to open their application to the participation of third developers or that they wish to make of their application a perennial and easily modifiable project.
Among all the possible solutions to solve this problem, we chose to use the object oriented programming in PHP where each plugin is an object which can be inserted easily into the project and considerated automaticaly by it.
The application which will be used as example with this system of plugin is a database management interface in which one can manage as many types of databases than one wishes as much as one develops the plugin being used to make the interface between application and dataserver.
Summary
Introduction
1. PHP 4 object oriented
2. Plugins format
2.1. Polymorphism
2.2. Application to plugins
3. Management of plugins
3.1. Loading plugins
3.2. Work with a plugin
3.3. Transmission and unloading of a plugin
4. Application: database management
4.1. Parent class: db_connection
4.2. Interface class: db
4.3. Plugin class: MySQL
Conclusion
|