These are a collection of functions that return an object of the appropriate type based on certain parameters. The purpose of this is to allow for a plugin-like configuration mechanism. The idea is that we can use these functions to automagically determine the system configuration and do things like swap between implementations, e.g. the NativeFS vs. FTPFS problem. Because these functions take care of the detection (possibly including reading query strings?) and include the class files, much of the “include() hell” I’ve been experiencing will now go away.
Note that this should really be a factory class, but PHP 4 doesn’t allow static methods, so it’s more convenient just to make them functions.
Summary
| These are a collection of functions that return an object of the appropriate type based on certain parameters. |
| |
| Creates a new page object. |
| Creates a new blog object |
| Creates a new blog entry object. |
| Creates a new article object |
| Creates a new BlogComment on an entry or article. |
| Creates a new template object. |
| Creates a new user object. |
| Creates a new file uploader object. |
| Creates a new trackback object. |
| Creates a new pingback object. |
| Creates a new INI file parser object. |