Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: files/file.php

Class File extends Anchor - The file anchor

This class implements the Anchor interface for posted files.

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

get_focus() - Get the focus for this anchor

function get_focus()

This function retrieve the id of the top anchor.

To be overloaded into derivated class

get_icon_url() - Get the url to display the icon for this anchor

function get_icon_url()



Voir aussi:

get_neighbours() - Get next and previous items, if any

function get_neighbours($type, $item)



Voir aussi:

get_path_bar() - Get the path bar for this anchor

function get_path_bar()

For files, the path bar is made of one stem for the section, then one stem for the file itself.

Voir aussi:

get_reference() - Get the reference for this anchor

function get_reference()

This function is used to retrieve a reference to be placed into the database. For example:
$anchor get_anchor($file['anchor']);
$context['text'] .= '<input type="hidden" name="anchor" value="'.$anchor->get_reference().'" />';


Voir aussi:

get_thumbnail_url() - Get the url to display the thumbnail for this anchor

function get_thumbnail_url()



Voir aussi:

get_url() - Get the url to display the main page for this anchor

function get_url($action='view')



Voir aussi:

load_by_id() - Load the related item

function load_by_id($id)

Voir aussi:

touch() - Remember the last action for this file

function touch($action, $origin, $silently = FALSE)

This function is called by related items. What does it do?

Moreover, on any change that impact the edition date (i.e., not in silent mode), a message is sent to the file creator, if different from the current surfer and a message is sent to watchers as well.

Voir aussi:

Tools
Browse the source of this script
Server software