PhotoRepositoryInterface
extends
HasSponsor, HasFeature, HasSponsorInFeed
in
Interface PhotoRepositoryInterface.
Tags
Table of Contents
Methods
- approve() : Content
- cleanUpRelationData() : void
- createPhoto() : array<string|int, int>
- deletePhoto() : array<string, mixed>
- deleteTaggedFriend() : false|int
- disableSponsor() : void
- downloadPhoto() : Photo
- enableSponsor() : void
- feature() : bool
- findFeature() : Paginator
- findSponsor() : Paginator
- getAlbum() : Album
- getPhotoByFeedId() : Paginator
- getPhotosByGroupId() : Collection|null
- getPrivacyFromAlbum() : array<string, mixed>
- getRandomSponsoredItems() : Collection
- getSponsoredItem() : Content
- getTaggedFriends() : Collection
- isFeature() : bool
- isFeedSponsored() : bool
- isPending() : bool
- isSponsor() : bool
- makeParentAvatar() : array<string, mixed>|null
- makeParentCover() : bool
- makeProfileAvatar() : array<string, mixed>|null
- makeProfileCover() : bool
- sponsor() : bool
- sponsorInFeed() : bool
- tagFriend() : TagFriendModel
- tempFileToExistPhoto() : Photo
- tempFileToPhoto() : Photo
- unsponsor() : bool
- unsponsorInFeed() : bool
- updateAvatarPath() : string
- updatePhoto() : Photo
- uploadMedias() : PhotoGroup
- viewPhoto() : Photo
- viewPhotos() : Paginator
- viewPhotoSet() : PhotoGroup
Methods
approve()
public
approve(User $context, int $id) : Content
Parameters
- $context : User
- $id : int
Tags
Return values
ContentcleanUpRelationData()
public
cleanUpRelationData(Photo $photo) : void
Parameters
- $photo : Photo
createPhoto()
public
createPhoto(User $context, User $owner, array<string, mixed> $attributes[, int $albumType = Album::TIMELINE_ALBUM ][, string|null $typeId = null ]) : array<string|int, int>
Parameters
- $context : User
- $owner : User
- $attributes : array<string, mixed>
- $albumType : int = Album::TIMELINE_ALBUM
- $typeId : string|null = null
Tags
Return values
array<string|int, int>deletePhoto()
public
deletePhoto(User $context, int $id) : array<string, mixed>
Parameters
- $context : User
- $id : int
Tags
Return values
array<string, mixed>deleteTaggedFriend()
public
deleteTaggedFriend(User $user, int $tagId) : false|int
Parameters
- $user : User
- $tagId : int
Tags
Return values
false|intdisableSponsor()
public
disableSponsor(Content $content) : void
Parameters
- $content : Content
downloadPhoto()
public
downloadPhoto(User $context, int $id) : Photo
Parameters
- $context : User
- $id : int
Tags
Return values
PhotoenableSponsor()
public
enableSponsor(Content $content) : void
Parameters
- $content : Content
feature()
public
feature(User $context, int $id, int $feature) : bool
Parameters
- $context : User
- $id : int
- $feature : int
Tags
Return values
boolfindFeature()
public
findFeature([int $limit = 4 ]) : Paginator
Parameters
- $limit : int = 4
Return values
PaginatorfindSponsor()
public
findSponsor([int $limit = 4 ]) : Paginator
Parameters
- $limit : int = 4
Return values
PaginatorgetAlbum()
public
getAlbum(User $user, User $owner, int $albumType) : Album
Parameters
Tags
Return values
AlbumgetPhotoByFeedId()
public
getPhotoByFeedId(User $context, int $feedId[, array<string, mixed> $attributes = [] ]) : Paginator
Parameters
- $context : User
- $feedId : int
- $attributes : array<string, mixed> = []
Tags
Return values
PaginatorgetPhotosByGroupId()
public
getPhotosByGroupId(int $groupId) : Collection|null
Parameters
- $groupId : int
Return values
Collection|nullgetPrivacyFromAlbum()
public
getPrivacyFromAlbum(int $albumId, array<string, mixed> $attributes) : array<string, mixed>
Parameters
- $albumId : int
- $attributes : array<string, mixed>
Return values
array<string, mixed>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
CollectiongetSponsoredItem()
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
getTaggedFriends()
public
getTaggedFriends(User $context, int $photoId) : Collection
Parameters
- $context : User
- $photoId : int
Tags
Return values
CollectionisFeature()
public
isFeature(Content $model) : bool
Parameters
- $model : Content
Return values
boolisFeedSponsored()
public
isFeedSponsored(Content $model) : bool
Parameters
- $model : Content
Return values
boolisPending()
public
isPending(Content $model) : bool
Parameters
- $model : Content
Return values
boolisSponsor()
public
isSponsor(Content $model) : bool
Parameters
- $model : Content
Return values
boolmakeParentAvatar()
public
makeParentAvatar(User $context, int $id[, User|null $owner = null ][, string|null $imageCrop = null ]) : array<string, mixed>|null
Parameters
Return values
array<string, mixed>|nullmakeParentCover()
public
makeParentCover(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Tags
Return values
boolmakeProfileAvatar()
public
makeProfileAvatar(User $context, int $id[, string|null $imageCrop = null ]) : array<string, mixed>|null
Parameters
- $context : User
- $id : int
- $imageCrop : string|null = null
Tags
Return values
array<string, mixed>|nullmakeProfileCover()
public
makeProfileCover(User $context, int $id[, array<string, mixed> $attributes = [] ]) : bool
Parameters
- $context : User
- $id : int
- $attributes : array<string, mixed> = []
Tags
Return values
boolsponsor()
public
sponsor(User $context, int $id, int $sponsor) : bool
Parameters
- $context : User
- $id : int
- $sponsor : int
Tags
Return values
boolsponsorInFeed()
public
sponsorInFeed(User $context, int $id, int $newValue) : bool
Parameters
- $context : User
- $id : int
- $newValue : int
Tags
Return values
booltagFriend()
public
tagFriend(User $user, User $friend, int $photoId, float $pxValue, float $pyValue) : TagFriendModel
Parameters
Tags
Return values
TagFriendModeltempFileToExistPhoto()
public
tempFileToExistPhoto(User $user, User $owner, Photo $photo, TempFileModel $tempFile[, array<string, mixed> $params = [] ]) : Photo
Parameters
- $user : User
- $owner : User
- $photo : Photo
- $tempFile : TempFileModel
- $params : array<string, mixed> = []
Tags
Return values
PhototempFileToPhoto()
public
tempFileToPhoto(User $user, User $owner, TempFileModel $tempFile[, array<string, mixed> $params = [] ]) : Photo
Parameters
- $user : User
- $owner : User
- $tempFile : TempFileModel
- $params : array<string, mixed> = []
Tags
Return values
Photounsponsor()
public
unsponsor(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Return values
boolunsponsorInFeed()
public
unsponsorInFeed(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Return values
boolupdateAvatarPath()
public
updateAvatarPath(int $photoId, string $path[, array<string|int, int> $sizes = [] ][, array<string|int, int> $squareSizes = [] ]) : string
Parameters
- $photoId : int
- $path : string
- $sizes : array<string|int, int> = []
- $squareSizes : array<string|int, int> = []
Return values
stringupdatePhoto()
public
updatePhoto(User $context, int $id, array<string, mixed> $attributes) : Photo
Parameters
- $context : User
- $id : int
- $attributes : array<string, mixed>
Tags
Return values
PhotouploadMedias()
public
uploadMedias(User $context, User $owner, array<string, mixed> $attributes) : PhotoGroup
Parameters
Return values
PhotoGroupviewPhoto()
public
viewPhoto(User $context, int $id) : Photo
Parameters
- $context : User
- $id : int
Tags
Return values
PhotoviewPhotos()
public
viewPhotos(User $context, User $owner[, array<string, mixed> $attributes = [] ]) : Paginator
Parameters
Tags
Return values
PaginatorviewPhotoSet()
public
viewPhotoSet(User $user, int $id) : PhotoGroup
Parameters
- $user : User
- $id : int