Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: dates/dates.php

Class Dates - The database abstraction layer for dates

Dates are an abstraction for time-related information.

This script is a reference file of this system.

Licence: GNU Lesser General Public License

Auteurs:

build_month_calendar() - Produce a nice calendar for the given month

function build_month_calendar($year, $month, $variant='month')

@parameter int year @parameter int month, from 1 to 12 @parameter string the target viw: 'months', 'month' or 'year'

delete() - Delete one date in the database and in the file system

function delete($id)



Voir aussi:

delete_for_anchor() - Delete all dates for a given anchor

function delete_for_anchor($anchor)



Voir aussi:

get() - Get one date by id

function &get($id)



Voir aussi:

get_for_anchor() - Get first date for one anchor

function &get_for_anchor($anchor)

get_month_label() - Label for one month

function get_month_label($month, $language=NULL)

@parameter string the target month (e.g., '1999-03' or '03') @parameter the target language, if any

get_url() - Get the url to view a date

function get_url($id, $action='view')

By default, a relative URL will be provided (e.g. 'dates/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. 'dates/view.php/512').

Voir aussi:

list_by_date() - List past events

function &list_by_date($offset=0, $count=10, $variant='full')



Voir aussi:

list_by_date_for_anchor() - List newest dates for one anchor

function &list_by_date_for_anchor($anchor, $offset=0, $count=20, $variant=NULL, $capability='?')

list_for_day() - List all dates for one day

function &list_for_day($year, $month, $day, $variant='links', $capability='?')

list_for_month() - List all dates for one month

function &list_for_month($year, $month, $variant='links', $capability='?')

list_future_for_anchor() - List future dates attached to some anchor

function &list_future_for_anchor($anchor, $offset=0, $count=100, $variant='family', $capability='?')

list_past_for_anchor() - List past dates attached to some anchor

function &list_past_for_anchor($anchor, $offset=0, $count=100, $variant='family', $capability='?')

list_selected() - List selected dates

function &list_selected(&$result, $layout='compact', $capability='?')

Accept following variants:

post() - Post a new date or an updated date

function post($fields)



Voir aussi:

setup() - Create or alter tables for dates

function setup()

Voir aussi:

stat() - Get some statistics

function &stat()



Voir aussi:

stat_past_for_anchor() - Get some statistics for one anchor

function &stat_past_for_anchor($anchor)

Tools
Browse the source of this script
Server software