class CEventHelper


Located at : UKNOWVA_ROOT/components/com_community/helpers/event.php

Constants

GROUP_TYPE

PROFILE_TYPE

ALL_TYPES

Properties

$handler
$id

Methods

static 
getHandler(CTableEvent $event)

No description

static 
isToday($event)

Return true if the event is going on today An event is considered a 'today' event IF - starting date is today or - starting date if in the past but ending date is in the future

static 
isPast($event)

Return true if the event is past A past event, is events that are has passed more than 24 hours from the last date

static 
isThisWeek($event)

Return true if the event is going on this week

static String
formatStartDate(CTableEvent $event, String $format)

Returns formatted date for the event for the given format.

getDateSelection($startDate = '', $endDate = '')

No description

Details

at line 544
static getHandler(CTableEvent $event)

Parameters

CTableEvent $event

at line 574
static isToday($event)

Return true if the event is going on today An event is considered a 'today' event IF - starting date is today or - starting date if in the past but ending date is in the future

Parameters

$event

at line 602
static isPast($event)

Return true if the event is past A past event, is events that are has passed more than 24 hours from the last date

Parameters

$event

at line 617
static isThisWeek($event)

Return true if the event is going on this week

Parameters

$event

at line 629
static String formatStartDate(CTableEvent $event, String $format)

Returns formatted date for the event for the given format.

Parameters

CTableEvent $event The event table object.
String $format The date format.

Return Value

String HTML value for the formatted date.

at line 637
getDateSelection($startDate = '', $endDate = '')

Parameters

$startDate
$endDate