Property | Type | Description | |
---|---|---|---|
$_aAllowedExt | |||
$_iProfileId |
Method | Description | |
---|---|---|
__construct ( &$aModule ) | ||
_addAvatar ( $sFullPath, $isMove = false, $isUpdateProfile = true ) | ||
_cropAvatar ( ) | ||
_defineActions ( ) | ||
_makeAvatarFromSharedPhoto ( $iSharedPhotoId ) | ||
_removeAvatar ( $iProfileId, $iAvatar ) | ================================== other function | |
_resizeImage ( $sImageSrc, $sImageDst, $iWidth, $iHeight, $bSquareResize = false, $bJpegOutput = true ) | ||
_setAvatar ( $iProfileId, $sImg, $isSetAvatarForCouple = false ) | ||
_uploadImage ( $iProfileId ) | ||
actionAdministration ( ) | ||
actionGetSiteAvatars ( $iPage ) | ||
actionHome ( ) | ||
actionMemberThumb ( $iProfileId ) | ||
actionRemoveAvatar ( $iProfileId, $sImg ) | ||
actionSetAvatar ( $iProfileId, $sImg ) | ||
actionSetAvatarCouple ( $iProfileId, $sImg ) | ||
actionSetSiteAvatar ( $sImg ) | ||
isAdmin ( ) | ||
isAllowedAdd ( $isPerformAction = false ) | ================================== permissions | |
isAllowedDelete ( &$aDataEntry, $isPerformAction = false ) | ||
isAllowedEdit ( $aDataEntry, $isPerformAction = false ) | ||
onEventChanged ( $iProfileId, $iEntryId, $iCoupleProfileId, $isTryToSuspend = true ) | ||
onEventCreate ( $iEntryId ) | ================================== events | |
onEventDeleted ( $iEntryId, $aDataEntry = [] ) | ||
serviceCropTool ( $aParams ) | Returns crop image html, it consists of image for cropping, cropping preview and descriptions | |
serviceDeleteProfileAvatars ( $iProfileId ) : true | Delete all profile's avatars | |
serviceGetMyAvatars ( $iProfileId ) : html | My avatars html | |
serviceGetSiteAvatars ( $iPage ) : html | Site avatars html | |
serviceGetWallData ( ) | Register 'add avatar' and 'change avatar' events for wall | |
serviceGetWallPost ( $aEvent ) : html | Html to display on profile wall, when user uploads new avatar | |
serviceJoin ( $iMemID, $sStatusText ) : false | After join redirection This serice automatically log in joined user and redirects him to avatar copping page | |
serviceMakeAvatarFromImage ( $sImg ) : true | make avatar from particular image, also it makes it square | |
serviceMakeAvatarFromImageUrl ( $sImgUrl ) : true | make avatar from image url, also it makes it square | |
serviceMakeAvatarFromSharedPhotoAuto ( $iSharedPhotoId ) : true | get image from photos module and make avatar from it also it makes it square | |
serviceManageAvatars ( $iProfileId, $isAddJsCss = false ) | ||
serviceSetImageForCropping ( $iProfileId, $sOrigPath ) : true | Set image for cropping. |
public _addAvatar ( $sFullPath, $isMove = false, $isUpdateProfile = true ) |
public _removeAvatar ( $iProfileId, $iAvatar ) |
public _resizeImage ( $sImageSrc, $sImageDst, $iWidth, $iHeight, $bSquareResize = false, $bJpegOutput = true ) |
public isAllowedAdd ( $isPerformAction = false ) |
public onEventChanged ( $iProfileId, $iEntryId, $iCoupleProfileId, $isTryToSuspend = true ) |
public onEventCreate ( $iEntryId ) |
public serviceCropTool ( $aParams ) | ||
$aParams | dir_image - image path url_image - image url |
public serviceDeleteProfileAvatars ( $iProfileId ) : true | ||
$iProfileId | - profile ID to delete avatar for | |
return | true | on success, false on error |
public serviceGetMyAvatars ( $iProfileId ) : html | ||
$iProfileId | - profile's ID to display avatars for | |
return | html | with my avatars |
public serviceGetSiteAvatars ( $iPage ) : html | ||
$iPage | - current page in site avatars | |
return | html | with site avatars |
public serviceGetWallData ( ) |
public serviceGetWallPost ( $aEvent ) : html | ||
$aEvent | - wall event parameters | |
return | html | to post on profile's wall |
public serviceJoin ( $iMemID, $sStatusText ) : false | ||
$iMemID | - joined profile ID | |
$sStatusText | - status text to display at the top of page, like 'join success' | |
return | false | on error, 'EXIT' string on success |
public serviceMakeAvatarFromImage ( $sImg ) : true | ||
$sImg | path to the image | |
return | true | on success or false on error |
public serviceMakeAvatarFromImageUrl ( $sImgUrl ) : true | ||
return | true | on success or false on error |
public serviceManageAvatars ( $iProfileId, $isAddJsCss = false ) |
public serviceSetImageForCropping ( $iProfileId, $sOrigPath ) : true | ||
$iProfileId | - profile id to set avatar for | |
$sOrigPath | - image path | |
return | true | on succrss, false on error |