class CTablePhoto extends CTableCache


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

Properties

$id
$albumid
$caption
$permissions
$created
$thumbnail
$image
$creator
$published
$original
$filesize
$storage
$hits
$ordering
$status

Methods

__construct($db)

Constructor

hasAccess($userId, $permissionType)

Allows us to test if the user has access to the album

getNextPhoto()

No description

check()

No description

store()

Overrides parent store function as we need to clean up some variables

delete()

Delete the photo, the original and the actual resized photos and thumbnails

getThumbURI()

Return the exact URL

getRawPhotoURI()

Return unencoded version of thr uri

getPhotoURI($external = false, $xhtml = true)

No description

getPhotoLink($external = false, $xhtml = true)

No description

getImageURI(size $size = 'normal')

Return the exist URL to be displayed.

getOriginalURI()

Return the URI of the original photo

loadFromImgPath($path)

No description

hit()

Override parent's hit method as we don't really want to carefully increment it every time a photo is viewed.

setOrdering()

Set the ordering of the current photo based on the maximum ordering in the photos table for the current album.

lastId()

No description

Details

at line 34
__construct($db)

Constructor

Parameters

$db

at line 48
hasAccess($userId, $permissionType)

Allows us to test if the user has access to the album

Parameters

$userId
$permissionType

at line 85
getNextPhoto()

at line 102
check()

at line 116
store()

Overrides parent store function as we need to clean up some variables

at line 132
delete()

Delete the photo, the original and the actual resized photos and thumbnails

at line 170
getThumbURI()

Return the exact URL

at line 210
getRawPhotoURI()

Return unencoded version of thr uri

at line 222
getPhotoURI($external = false, $xhtml = true)

Parameters

$external
$xhtml

Parameters

$external
$xhtml

at line 243
getImageURI(size $size = 'normal')

Return the exist URL to be displayed.

Parameters

size $size string, (normal, origianl, small)

at line 298
getOriginalURI()

Return the URI of the original photo

at line 310
loadFromImgPath($path)

Parameters

$path

at line 343
hit()

Override parent's hit method as we don't really want to carefully increment it every time a photo is viewed.

at line 365
setOrdering()

Set the ordering of the current photo based on the maximum ordering in the photos table for the current album.

at line 372
lastId()