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.
Creates a new filesystem access object.
Create a new PSR logger object.
function NewPage( |
| ) |
Creates a new page object.
function NewBlog( |
| ) |
Creates a new blog object
function NewBlogEntry( |
| ) |
Creates a new blog entry object.
function NewBlogComment( |
| ) |
Creates a new BlogComment on an entry or article.
function NewTemplate( |
| ) |
Creates a new template object.
function NewUser( |
| ) |
Creates a new user object.
usr | The optional username of the user represented by this object. |
function NewFileUpload( |
| ) |
Creates a new file uploader object.
field | The form field that this object represents. |
dir | Thfile:///home/Tallgeese/pageer/www/LnBlog/lib/creators.phpe optional target directory. |
index | The optional index of this upload for file upload arrays. |
function NewTrackback( |
| ) |
Creates a new trackback object.
function NewPingback( |
| ) |
Creates a new pingback object.
function NewIniParser( |
| ) |
Creates a new INI file parser object.
function NewConfigFile( |
| ) |
Creates an XML config file parser object.
function NewReply( |
| ) |
Creates a new object based on a reply identifier. The object is a BlogComment, Trackback, or Pinback. The type of object is based on the parameter passed, which can be either an anchor name as displayed on the page or a local file path.