| » Metadata | » Status |
|---|---|
|
|
| » Description | |
|
Summary PEAR_PackageFileManager_Frontend (PFMFE) is designed to act as a backend with all logic for any frontend such as Web or Gtk2. After a first attempt with my previous proposal (today deleted) called PEAR_PackageFileManager_GUI_Web, i've realized with Scott Mattocks future plan of Gtk2 frontend a real need to split my previous work in two parts: - a backend (this proposal) - a simple html web frontend with no PEAR_PackageFileManager2 process/logic. PEAR_PackageFileManager_GUI_Web code revisited ... (in progress) will become soon my next proposal under name PEAR_PackageFileManager_Frontend_Web. API resume Error management All errors are written in a PEAR_PackageFileManager_Frontend 'error stack. See PEAR_ErrorStack usage. Even errors/warnings from PEAR_PackageFileManager2 (PFM) are repackaged using Ian Eure solution and its StackThunk 0.9.0 package.
Configuration Beside these functions, you will find intensive usage of PEAR::Config package and its different containers. Loading preferences, and change PFMFE behaviours begin so easy. You may change PFM internal options (simpleoutput, baseinstalldir, ...) but also you can define which classes components will be use in a frontend (web/gtk2).
Example below load preferences from php $conf array . But you can also use a config container created on the fly or at least use an external config file (xml, php array, ...) Example to retrieve the display driver class of my web frontend configuration value In my Web frontend, i've a addPages function that read page from an external config source to build my QF controller. Here are how i get info using XPATH Config like syntax. Logging activity Logs normal activity or simple to help for debug, two methods are available.
Getting XML Package information To initialize a frontend and all its logical pages, i've a unique method.
and categories (package, release, maintainers, dependencies, replacements) But there are also basic functions:
Roadmap PFMFE is just a stone for all frontend we can imagine. It should not be used alone. Conclusion will come with PEAR_PackageFileManager_Frontend_Web and PEAR_PackageFileManager_Frontend_Gtk2. |
|
| » Dependencies | » Links |
|
|
| » Timeline | » Changelog |
|
|