Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: categories/members.php

Class Members - The database abstraction layer for membership

// link a member to several anchors
Members::set_anchors($fields);

// break the association of one member with one anchor
Members::unlink($anchor$member);

// to get the list of members for one anchor, ordered by id
Members::list_members_for_anchor($anchor$offset$count);

// to get ordered articles linked with some anchor
Members::list_articles_by_date_for_anchor($anchor$offset$count$variant);
Members::list_articles_by_title_for_anchor($anchor$offset$count$variant);

// to get the list of anchors for one member, ordered by id
Members::list_anchors_for_member($member);

// to get ordered categories linked with some member
Members::list_categories_by_title_for_member($member$offset$count$variant);

// to get ordered sections linked with some member
Members::list_sections_by_title_for_anchor($anchor$offset$count$variant);


This script is a reference file of this system.

Licence: GNU Lesser General Public License

Auteurs:

anchor() - Link one anchor with another item

function anchor($anchor, $member)



Voir aussi:

check() - Check whether an anchor is linked to another item

function check($anchor, $member)



Voir aussi:

list_anchors_for_member() - List all anchors for one member

function list_anchors_for_member($member, $offset=0, $count=10)

list_articles_by_date_for_anchor() - List most recent articles related to a given category or to any other anchor

function &list_articles_by_date_for_anchor($anchor, $offset=0, $count=10, $variant=NULL)

Actually list articles by date, then by title. Note that articles are not ordered within a category list.

Only articles matching following criteria are returned:

Voir aussi:

list_articles_by_title_for_anchor() - List alphabetically ordered articles related to a given category or to any other anchor

function &list_articles_by_title_for_anchor($anchor, $offset=0, $count=10, $variant=NULL)

Actually list articles by title, then by date. Note that articles are never ranked into a category list.

Only articles matching following criteria are returned:

Voir aussi:

list_members_for_anchor() - List all members for one anchor

function list_members_for_anchor($anchor, $offset=0, $count=10)

This function is used for example to retrieve all users watching a given article.

Voir aussi:

list_categories_by_title_for_member() - List alphabetically ordered categories related to a given article or to any other anchor

function &list_categories_by_title_for_member($member, $offset=0, $count=10, $variant='full', $capability=NULL)

Actually list categories by rank, then by title, then by date. If you select to not use the ranking system, categories will be ordered by title only. Else categories with a low ranking mark will appear first, and categories with a high ranking mark will be put at the end of the list.

Only categories matching following criteria are returned:

Voir aussi:

list_editors_by_name_for_member() - List alphabetically ordered editors related to a given member

function &list_editors_by_name_for_member($member, $offset=0, $count=10, $variant=NULL, $capability=NULL)

Actually list users by title, then by date.

Only users matching following criteria are returned:

Voir aussi:

list_sections_by_title_for_anchor() - List alphabetically ordered sections related to any anchor

function &list_sections_by_title_for_anchor($anchor, $offset=0, $count=10, $variant='compact', $capability=NULL)

Actually list sections by rank, then by title, then by date. If you select to not use the ranking system, sections will be ordered by title only. Else sections with a low ranking mark will appear first, and sections with a high ranking mark will be put at the end of the list.

Only sections matching following criteria are returned:

Voir aussi:

list_readers_by_name_for_member() - List alphabetically ordered readers related to a given member

function &list_readers_by_name_for_member($member, $offset=0, $count=10, $variant=NULL, $capability=NULL)

Actually list users by title, then by date.

Only users matching following criteria are returned:

Voir aussi:

set_anchors() - Set the associations with anchors for one member

function set_anchors($fields)

stat_articles_for_anchor() - Get some statistics for articles linked to one anchor

function &stat_articles_for_anchor($anchor)

Only articles matching following criteria are returned:

Voir aussi:

stat_for_anchor() - Get some statistics for one anchor

function &stat_for_anchor($anchor)

stat_sections_for_anchor() - Get some statistics for sections linked to one anchor

function &stat_sections_for_anchor($anchor)

Only sections matching following criteria are returned:

Voir aussi:

toggle() - Toggle a membership

function toggle($anchor, $member, $father=NULL)

The father parameter is used to specialize a membership to a sub-category.

Voir aussi:

unlink() - Unlink one anchor with another item

function unlink($anchor, $member)

unlink_for_anchor() - Delete all members for a given anchor

function unlink_for_anchor($anchor)

This function only delete the membership information. After the operation the items that were linked together will still exist.

unlink_for_member() - Clear all anchor member associations for one member

function unlink_for_member($member)

Tools
Browse the source of this script
Server software