ModelUpdatedListener
in package
Table of Contents
Methods
- handle() : void
- createAlbumItemForMedia() : AlbumItem
- handleApprovePhotoGroupOfOwner() : void
- This method only handles the approval process from inside User which has pending mode.
- handleUpdateMedia() : void
- handleUpdateMediaAlbumId() : void
- handleUpdateMediaGroupId() : void
- handleUpdatePhotoGroupProcessingItems() : void
- updatePhotoGroupItems() : void
Methods
handle()
public
handle(mixed $model) : void
Parameters
- $model : mixed
createAlbumItemForMedia()
private
createAlbumItemForMedia(Media $model) : AlbumItem
Parameters
- $model : Media
Return values
AlbumItemhandleApprovePhotoGroupOfOwner()
This method only handles the approval process from inside User which has pending mode.
private
handleApprovePhotoGroupOfOwner(Model $model) : void
For case approve Media item from inside its app, see \MetaFox\Photo\Listeners\ModelApprovedListener.
Parameters
- $model : Model
handleUpdateMedia()
private
handleUpdateMedia(Model $model) : void
Parameters
- $model : Model
handleUpdateMediaAlbumId()
private
handleUpdateMediaAlbumId(Media $model) : void
Parameters
- $model : Media
handleUpdateMediaGroupId()
private
handleUpdateMediaGroupId(Media $model) : void
Parameters
- $model : Media
handleUpdatePhotoGroupProcessingItems()
private
handleUpdatePhotoGroupProcessingItems(Media $media) : void
Parameters
- $media : Media
updatePhotoGroupItems()
private
updatePhotoGroupItems(PhotoGroup $photoGroup) : void
Parameters
- $photoGroup : PhotoGroup