class CTableEvent extends CTableCache implements CGeolocationInterface, CTaggable_Item


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

Properties

$id
$catid
$contentid
$type
$title
$summary
$description
$location
$creator
$startdate
$enddate
$permission
$avatar
$thumb
$invitedcount
$confirmedcount
$declinedcount
$maybecount
$created
$hits
$published
$wallcount
$ticket
$allowinvite
$offset
$latitude
$longitude
$_pagination

Methods

__construct($db)

Constructor

bind($data)

Binds an array into this object's property

load($id = null)

No description

check()

No description

store()

No description

hit()

Make sure hits are user and session sensitive

getStartTime()

No description

getEndTime()

No description

getStartDate(boolean $formatted = true)

Retrieves the starting date of an event.

_getStartDate()

Deprecated since 2.x

getEndDate(boolean $formatted = true)

Retrieves the ending date of an event.

_getEndDate()

Deprecated since 2.x

string
getAvatar()

Return the full URL path for the specific image

getThumbAvatar()

Return full uri path of the thumbnail

setImage($path, $type = 'thumb')

Set the avatar for for specific group

setConfirmedCount($addCount = 1)

No description

deleteAllMembers()

No description

deletePendingMember()

No description

deleteWalls()

Delete group's wall

deleteActivity()

No description

getCreator()

No description

getCategoryName()

No description

getCreatorName()

No description

getAdmins($limit, $randomize = false)

Returns the members list for the specific groups

getAdminsCount()

No description

getPagination()

No description

getMembers($status, $limit, $randomize = false, $pendingApproval = false)

No description

inviteRequestCount()

No description

getMembersCount($status, $type = 'all', $pendingApproval = false)

No description

getMemberStatus($userid)

No description

boolean
isExpired()

Return true if event is in the past

boolean
isAdmin(int $userid)

Return true if the user is admin for the event

type
isCreator(type $userId) deprecated

Return true is user is creator of the event.

getUserStatus($userid)

Return the status of this user related to this event 0: invited 1: attend 2: won't attend 3: maybe 4: blocked from attending 5: requesting invite 6: no relation

upgradeWallToStream()

No description

isMember(string $userid)

Check if the given user is a member of the event A member is basically someone who has marked their attendance

isPendingApproval(string $userid)

Check if the given user was pending approval

addWallCount()

No description

substractWallCount()

No description

updateGuestStats()

Recalculate event guest stats

resolveLocation($address)

Interface fucntions *

removeGuest($guestId, $eventId)

Remove guest from events

boolean
delete($id = null)

Override default delete method so that we can remove necessary data for Events.

getLink()

Retrieves the URL to the current event.

getGuestLink($status = COMMUNITY_EVENT_STATUS_ATTEND)

Retrieves the URL to the current event.

tagGetTitle()

Return the title of the object

tagGetHtml()

Return the HTML summary of the object

tagGetLink()

Return the internal link of the object

tagAllow($userid)

Return true if the user is allow to modify the tag

Details

at line 55
__construct($db)

Constructor

Parameters

$db

at line 76
bind($data)

Binds an array into this object's property

Parameters

$data mixed An associative array or object

at line 111
load($id = null)

Parameters

$id

at line 120
check()

at line 134
store()

at line 151
hit()

Make sure hits are user and session sensitive

at line 160
getStartTime()

at line 166
getEndTime()

at line 178
JDate getStartDate(boolean $formatted = true)

Retrieves the starting date of an event.

Parameters

boolean $formatted Determins whether to call deprecated method.

Return Value

JDate

at line 194
_getStartDate()

Deprecated since 2.x

This method was used in place of getStartDate prior to 2.x.

at line 206
JDate getEndDate(boolean $formatted = true)

Retrieves the ending date of an event.

Parameters

boolean $formatted Determins whether to call deprecated method.

Return Value

JDate

at line 222
_getEndDate()

Deprecated since 2.x

This method was used in place of getStartDate prior to 2.x.

at line 234
string getAvatar()

Return the full URL path for the specific image

Return Value

string The category name

at line 254
getThumbAvatar()

Return full uri path of the thumbnail

at line 275
setImage($path, $type = 'thumb')

Set the avatar for for specific group

Parameters

$path
$type

at line 311
setConfirmedCount($addCount = 1)

Parameters

$addCount

at line 317
deleteAllMembers()

at line 334
deletePendingMember()

at line 360
deleteWalls()

Delete group's wall

param string id The id of the group.

at line 380
deleteActivity()

at line 401
getCreator()

at line 407
getCategoryName()

at line 415
getCreatorName()

at line 428
getAdmins($limit, $randomize = false)

Returns the members list for the specific groups

Parameters

$limit
$randomize

at line 473
getAdminsCount()

at line 493
getPagination()

at line 498
getMembers($status, $limit, $randomize = false, $pendingApproval = false)

Parameters

$status
$limit
$randomize
$pendingApproval

at line 549
inviteRequestCount()

at line 569
getMembersCount($status, $type = 'all', $pendingApproval = false)

Parameters

$status
$type
$pendingApproval

at line 607
getMemberStatus($userid)

Parameters

$userid

at line 620
boolean isExpired()

Return true if event is in the past

Return Value

boolean

at line 634
boolean isAdmin(int $userid)

Return true if the user is admin for the event

Parameters

int $userid

Return Value

boolean

at line 652
type isCreator(type $userId) deprecated

deprecated

Return true is user is creator of the event.

Since 2.4, there is no more event creator concept. Event admins will have the same privilege as the creator

Parameters

type $userId

Return Value

type

at line 667
getUserStatus($userid)

Return the status of this user related to this event 0: invited 1: attend 2: won't attend 3: maybe 4: blocked from attending 5: requesting invite 6: no relation

Parameters

$userid

at line 680
upgradeWallToStream()

at line 797
isMember(string $userid)

Check if the given user is a member of the event A member is basically someone who has marked their attendance

Parameters

string $userid userid

at line 820
isPendingApproval(string $userid)

Check if the given user was pending approval

Parameters

string $userid userid

at line 840
addWallCount()

at line 854
substractWallCount()

at line 871
updateGuestStats()

Recalculate event guest stats

at line 896
resolveLocation($address)

Interface fucntions *

Parameters

$address

at line 918
removeGuest($guestId, $eventId)

Remove guest from events

Parameters

$guestId
$eventId

at line 942
boolean delete($id = null)

Override default delete method so that we can remove necessary data for Events.

Parameters

$id

Return Value

boolean True on success false otherwise.

Retrieves the URL to the current event.

Retrieves the URL to the current event.

Parameters

$status

at line 977
tagGetTitle()

Return the title of the object

at line 985
tagGetHtml()

Return the HTML summary of the object

Return the internal link of the object

at line 1003
tagAllow($userid)

Return true if the user is allow to modify the tag

Parameters

$userid