vBulletin v6.0.4

vB_Library_Content_Photo extends vB_Library_Content
in package

vB_Library_Content_Photo

Tags
access

public

Table of Contents

Methods

add()  : mixed
Add photo record
delete()  : bool
Delete photo record
deleteChildren()  : mixed
Delete the records without updating the parent info. It is used when deleting a whole channel and it's children need to be removed
fetchParent()  : int
Fetches photo's parentid
isOwner()  : bool
Checks if user owns a gallery
validate()  : bool
validates that the current can do something with a node with these values

Methods

add()

Add photo record

public add(mixed $data[, array<string|int, mixed> $options = array() ]) : mixed
Parameters
$data : mixed
$options : array<string|int, mixed> = array()

delete()

Delete photo record

public delete(mixed $photoId) : bool
Parameters
$photoId : mixed
Return values
bool

deleteChildren()

Delete the records without updating the parent info. It is used when deleting a whole channel and it's children need to be removed

public deleteChildren(array<string|int, mixed> $childrenIds) : mixed
Parameters
$childrenIds : array<string|int, mixed>
  • list of node ids

fetchParent()

Fetches photo's parentid

public fetchParent(mixed $photoId) : int
Parameters
$photoId : mixed
Return values
int

Parent Id of the given photo

isOwner()

Checks if user owns a gallery

public isOwner(mixed $galleryId, mixed $userId) : bool
Parameters
$galleryId : mixed
$userId : mixed
Return values
bool

Flag indicating if user is or not owner

validate()

validates that the current can do something with a node with these values

public validate(mixed $data[, mixed $action = self::ACTION_ADD ][, mixed $nodeid = false ][, mixed $nodes = false ][, mixed $userid = null ]) : bool
Parameters
$data : mixed
$action : mixed = self::ACTION_ADD
$nodeid : mixed = false
$nodes : mixed = false
$userid : mixed = null
Return values
bool

        
On this page

Search results