Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: users/user.php

Class User extends Anchor - The implementation of anchor for users

This class implements the Anchor interface for community members.

Following behaviour has been defined for member functions: get_icon_url() -- reuse the user icon url, if any get_path_bar() -- one link to the user page get_prefix() -- provides the user introduction get_reference() -- returns 'user:<id>' get_suffix() -- the null string get_title() -- provide the user full name get_thumbnail_url() -- reuse the user thumbnail url, if any get_url() -- link to users/view.php/id has_option() -- depending on the content of the editors field is_editable() -- depending on the content of the editors field touch() -- remember the last action in the user record

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

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 users, the path bar is made of one stem for all users, then one stem for the user himself.

Voir aussi:

get_reference() - Get the reference for this anchor

function get_reference()



Voir aussi:

get_title() - Get the title for this anchor

function get_title()



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:

is_editable() - Check that the surfer is an editor of a user profile

function is_editable($user_id = NULL)



Voir aussi:

load_by_id() - Load the related item

function load_by_id($id)

Voir aussi:

touch() - Remember the last action for this user

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



Voir aussi:

Tools
Browse the source of this script
Server software