MetaFox

HasSponsor
in

Interface HasSponsor.

Table of Contents

Methods

disableSponsor()  : void
enableSponsor()  : void
getRandomSponsoredItems()  : Collection
getSponsoredItem()  : Content
isSponsor()  : bool
sponsor()  : bool
unsponsor()  : bool

Methods

getRandomSponsoredItems()

public getRandomSponsoredItems(User $context, int $limit[, array<string|int, mixed>|null $loadedItemIds = null ]) : Collection
Parameters
$context : User
$limit : int
$loadedItemIds : array<string|int, mixed>|null = null
Return values
Collection

getSponsoredItem()

public getSponsoredItem(array<string|int, int> $notInIds[, int|null $sponsorStart = null ][, array<string|int, mixed> $with = [] ]) : Content
Parameters
$notInIds : array<string|int, int>
$sponsorStart : int|null = null
$with : array<string|int, mixed> = []
Return values
Content

| null

sponsor()

public sponsor(User $context, int $id, int $sponsor) : bool
Parameters
$context : User
$id : int
$sponsor : int
Tags
throws
AuthorizationException
Return values
bool

unsponsor()

public unsponsor(User $context, int $id) : bool
Parameters
$context : User
$id : int
Return values
bool

        
On this page

Search results