FeedComposerEditListener
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- handle() : bool|array<string|int, mixed>
- Photo set feed content won't apply to every single photo. DO NOT assign content to per photo.
- handlePhotoGroup() : bool
- removeMedias() : void
- updateMedias() : void
- uploadMedias() : void
Properties
$groupRepository
protected
PhotoGroupRepositoryInterface
$groupRepository
Methods
__construct()
public
__construct(PhotoGroupRepositoryInterface $groupRepository) : mixed
Parameters
- $groupRepository : PhotoGroupRepositoryInterface
handle()
Photo set feed content won't apply to every single photo. DO NOT assign content to per photo.
public
handle(User $user, User $owner, mixed $resource, array<string, mixed> $params) : bool|array<string|int, mixed>
Parameters
Tags
Return values
bool|array<string|int, mixed>handlePhotoGroup()
protected
handlePhotoGroup(User $user, User $owner, PhotoGroup $group, array<string, mixed> $params, string|null $content[, array<string|int, int> $newFiles = [] ][, array<string|int, int> $removeFiles = [] ][, array<string|int, int> $editFiles = [] ]) : bool
Parameters
- $user : User
- $owner : User
- $group : PhotoGroup
- $params : array<string, mixed>
- $content : string|null
- $newFiles : array<string|int, int> = []
- $removeFiles : array<string|int, int> = []
- $editFiles : array<string|int, int> = []
Tags
Return values
boolremoveMedias()
protected
removeMedias(array<int, mixed> $removeMedias) : void
Parameters
- $removeMedias : array<int, mixed>
updateMedias()
protected
updateMedias(User $user, array<string|int, mixed> $files) : void
Parameters
- $user : User
- $files : array<string|int, mixed>
uploadMedias()
protected
uploadMedias(User $user, User $owner, array<int, mixed> $files, array<string, mixed> $params) : void