MetaFox

AlbumRepositoryInterface extends HasSponsor, HasFeature, MediaAlbumRepositoryInterface, HasSponsorInFeed
in

Interface Album.

Tags
mixin

BaseRepository

mixin

CollectTotalItemStatTrait

mixin

UserMorphTrait

Table of Contents

Methods

approve()  : Content
createAlbum()  : Album
deleteAlbum()  : mixed
disableSponsor()  : void
enableSponsor()  : void
feature()  : bool
findFeature()  : Paginator
findSponsor()  : Paginator
getAlbumById()  : Album|null
getAlbumsForForm()  : array<int, mixed>
getDefaultUserAlbums()  : Collection
getRandomSponsoredItems()  : Collection
getSponsoredItem()  : Content
isDefaultUserAlbum()  : bool
isFeature()  : bool
isFeedSponsored()  : bool
isPending()  : bool
isSponsor()  : bool
model()  : string
removeAvatarFromAlbum()  : void
removeCoverFromAlbum()  : void
sponsor()  : bool
sponsorInFeed()  : bool
unsponsor()  : bool
unsponsorInFeed()  : bool
updateAlbum()  : Album
updateAlbumCover()  : void
uploadMedias()  : array<string|int, mixed>
viewAlbum()  : mixed
viewAlbumItems()  : Paginator
viewAlbums()  : Paginator

Methods

createAlbum()

public createAlbum(User $context, User $owner, array<string, mixed> $attributes) : Album
Parameters
$context : User
$owner : User
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
Return values
Album

feature()

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

findFeature()

public findFeature([int $limit = 4 ]) : Paginator
Parameters
$limit : int = 4
Return values
Paginator

findSponsor()

public findSponsor([int $limit = 4 ]) : Paginator
Parameters
$limit : int = 4
Return values
Paginator

getDefaultUserAlbums()

public getDefaultUserAlbums(int $ownerId[, array<string|int, mixed> $types = [] ]) : Collection
Parameters
$ownerId : int
$types : array<string|int, mixed> = []
Return values
Collection

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

isDefaultUserAlbum()

public isDefaultUserAlbum(int $id[, int $ownerId = 0 ]) : bool
Parameters
$id : int
$ownerId : int = 0
Return values
bool

sponsor()

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

sponsorInFeed()

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

unsponsor()

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

unsponsorInFeed()

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

updateAlbum()

public updateAlbum(User $context, int $id, array<string, mixed> $attributes) : Album
Parameters
$context : User
$id : int
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
Return values
Album

uploadMedias()

public uploadMedias(User $context, int $id, array<string|int, mixed> $attributes) : array<string|int, mixed>
Parameters
$context : User
$id : int
$attributes : array<string|int, mixed>
Return values
array<string|int, mixed>

viewAlbumItems()

public viewAlbumItems(User $context, int $id[, array<string, mixed> $attributes = [] ]) : Paginator
Parameters
$context : User
$id : int
$attributes : array<string, mixed> = []
Tags
throws
AuthorizationException
Return values
Paginator

viewAlbums()

public viewAlbums(User $context, User $owner[, array<string, mixed> $attributes = [] ]) : Paginator
Parameters
$context : User
$owner : User
$attributes : array<string, mixed> = []
Tags
throws
AuthorizationException
Return values
Paginator

        
On this page

Search results