A class which encpasulates an item which can be in the catalog.
Located in /catalog-defs.php (line 38)
RenderableObject | --catalogitem
Constructor
Return the catalog item as a clickable icon.
Create this catalog item from a media file on disk. The media item should be located at a physical path on disk somewhere. It will be grabbed, moved to a new location, and the item record saved to the DB.
NOTE: this may be an existing catalogitem, OR a newly created one. This is not determined by this routine, but must be set up before calling this method. The save() method then does whatever is necessary.
Remove the catalog item from the database and disk. This method normally tries to remove the physical file first, and if that succeeds it removes the database record. If $deletefile is false then the file will be left and only the DB record deleted.
Get current or nominated catalog item definition from the database.
Render the catalog item. We render it as either and icon or a link, both being clickable to view the content.
Index this catalog item to Lucene.
If it exists already, index entry for this item is replaced.
Return the catalog item as image, a clickable icon, or otherwise a link.
Save current catalog item definition to the database. Inserts if brand new, else performs an update.
Process an uploaded media file, and define this catalog item to be
the newly uploaded file. Assuming a valid upload is performed, this catalog item will be added to the database, and the file stahsed in the media directory. This method is provided to allow for easy handling of upload form submission particularly for the Axyl media catalog. Ie. use this if you have a form which is just for uploading new images, movies etc. to the Axyl catalog.
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3