Home « Server software «
Documentation: collections/collections.php
Class Collections - The database abstraction layer for collections
Collections are a web interface to files in a file system accessible from the web server.Each collection is mapped to a different directory.
This script is a reference file of this system.
Voir aussi:
- MIME Reference
- File Format Names for New OASIS Open Office XML Format
- MIME Type Settings for Windows Media Services
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
get() - Get information for one item
function &get($id)
- $id - string the provided path for the item, including the collection prefix
- returns a set of attributes for this item, including: 'collection', 'relative_path', etc.
get_icon_img() - Get the img tag for this item
function get_icon_img($name)
- $name - string the item name
- returns an anchor to the viewing script
get_url() - Get the url to view a file
function get_url($id, $action='view')
- $id - int the id of the file to view
- $action='view' - string the expected action ('view', 'edit', 'delete', ...)
- returns an anchor to the viewing script
collections/view.php?id=512'),
which may be not processed correctly by search engines.
If the parameter 'with_friendly_urls' has been set to 'Y' in the configuration panel,
this function will return an URL parsable by search engines (e.g. 'collections/view.php/512').Voir aussi: