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:
- Bernard Paques bernard.paques@bigfoot.com
get_icon_url() - Get the url to display the icon for this anchor
function get_icon_url()
- returns an anchor to the icon image
Voir aussi:
get_neighbours() - Get next and previous items, if any
function get_neighbours($type, $item)
- $type - string the item type (eg, 'image', 'file', etc.)
- $item - array the anchored item asking for neighbours
- returns an array($previous_url, $previous_label, $next_url, $next_label, $option_url, $option_label)
Voir aussi:
get_path_bar() - Get the path bar for this anchor
function get_path_bar()
- returns an array of $url => $label
Voir aussi:
get_reference() - Get the reference for this anchor
function get_reference()
- returns 'user:<id>'
Voir aussi:
get_title() - Get the title for this anchor
function get_title()
- returns a string
Voir aussi:
get_thumbnail_url() - Get the url to display the thumbnail for this anchor
function get_thumbnail_url()
- returns an anchor to the thumbnail image
Voir aussi:
get_url() - Get the url to display the main page for this anchor
function get_url($action='view')
- $action='view' - string the targeted action ('view', 'print', 'edit', 'delete', ...)
- returns an anchor to the viewing script
Voir aussi:
is_editable() - Check that the surfer is an editor of a user profile
function is_editable($user_id = NULL)
- $user_id = NULL - int optional reference to some user profile
- returns TRUE if the surfer is browsing his/her own profile
Voir aussi:
load_by_id() - Load the related item
function load_by_id($id)
- $id -
Voir aussi:
touch() - Remember the last action for this user
function touch($action, $origin, $silently = FALSE)
- $action - string the description of the last action
- $origin - string the id of the item related to this update
- $silently = FALSE - boolean TRUE for a silent update
- returns a string in case of error
Voir aussi: