UNA
Loading...
Searching...
No Matches
BxBaseModProfileUploaderCrop Class Reference
Inheritance diagram for BxBaseModProfileUploaderCrop:
BxTemplUploaderCrop BxBaseUploaderCrop BxDolUploader BxDolFactory BxBaseModProfileUploaderBadgeCrop BxBaseModProfileUploaderCoverCrop BxBaseModProfileUploaderPictureCrop BxBaseModGroupsUploaderBadgeCrop BxPersonsUploaderBadgeCrop BxBaseModGroupsUploaderCoverCrop BxPersonsUploaderCoverCrop BxBaseModGroupsUploaderPictureCrop BxPersonsUploaderPictureCrop BxOrgsUploaderBadgeCrop BxCnlUploaderCoverCrop BxCoursesUploaderCoverCrop BxEventsUploaderCoverCrop BxGroupsUploaderCoverCrop BxJobsUploaderCoverCrop BxOrgsUploaderCoverCrop BxSpacesUploaderCoverCrop BxCnlUploaderPictureCrop BxCoursesUploaderPictureCrop BxEventsUploaderPictureCrop BxGroupsUploaderPictureCrop BxJobsUploaderPictureCrop BxOrgsUploaderPictureCrop BxSpacesUploaderPictureCrop

Public Member Functions

 __construct ($aObject, $sStorageObject, $sUniqId, $oTemplate)
 deleteGhostsForProfile ($iProfileId, $mixedContent=false)
 getGhosts ($iProfileId, $sFormat, $sImagesTranscoder=false, $iContentId=false)
Public Member Functions inherited from BxBaseUploaderCrop
 getUploaderButtonTitle ($mixed=false)
 addCssJs ($bDynamic=false)
 getUploaderForm ($isMultiple=true, $iContentId=false, $isPrivate=true)
 handleUploads ($iProfileId, $mixedFiles, $isMultiple=true, $iContentId=false, $bPrivate=true)
Public Member Functions inherited from BxDolUploader
 isAvailable ()
 isInstalled ()
 getNameJsInstanceUploader ()
 getIdContainerResult ()
 getIdContainerUploadInProgress ()
 getIdContainerPopup ()
 getIdContainerErrors ()
 getUploadErrorMessages ($sFormat='HTML')
 getUploaderButton ($aParams=array())
 getUploaderJsParams ()
 getUploaderJs ($mixedGhostTemplate, $isMultiple=true, $aParams=array(), $bDynamic=false)
 addJs ($mixedFile)
 addCss ($mixedFile)
 getGhostsWithOrder ($iProfileId, $sFormat, $sImagesTranscoder=false, $iContentId=false, $isLatestOnly=false)
 reorderGhosts ($iProfileId, $sFormat, $aGhosts, $iContentId=false)
 deleteGhost ($iFileId, $iProfileId)
 appendUploadErrorMessage ($s)

Protected Member Functions

 isAdmin ($iContentId=0)
Protected Member Functions inherited from BxDolUploader
 cleanUploadErrorMessages ()
 getRestrictionsText ()
 getMaxUploadFileSize ()
 getAcceptedFilesExtensions ()
 getGhostTemplateVars ($aFile, $iProfileId, $iContentId, $oStorage, $oImagesTranscoder)
 isUseTranscoderForPreview ($oImagesTranscoder, $aFile)

Protected Attributes

 $_sModule
 $_oModule
 $_sImage
 $_aOtherImages
Protected Attributes inherited from BxDolUploader
 $_bIsApi
 $_oTemplate
 $_aObject
 $_sStorageObject
 $_sUniqId
 $_sUploaderJsInstance
 $_sUploadInProgressContainerId
 $_sPopupContainerId
 $_sResultContainerId
 $_sErrorsContainerId
 $_sFormContainerId
 $_sUploadErrorMessages
 $_sButtonTemplate
 $_sJsTemplate
 $_sUploaderFormTemplate
 $_aJs
 $_aCss

Additional Inherited Members

Static Public Member Functions inherited from BxDolUploader
static getObjectInstance ($sObject, $sStorageObject, $sResultContainerId, $oTemplate=false)

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ deleteGhostsForProfile()

BxBaseModProfileUploaderCrop::deleteGhostsForProfile ( $iProfileId,
$mixedContent = false )

Delete all ghosts files for the specified profile

Parameters
$iProfileId- profile id to get orphaned files from
$mixedContent- int Content ID | array Content ID + Uploader ID | false
Returns
number of delete ghost files

Reimplemented from BxDolUploader.

◆ getGhosts()

BxBaseModProfileUploaderCrop::getGhosts ( $iProfileId,
$sFormat,
$sImagesTranscoder = false,
$iContentId = false )

Display uploaded, but not saved files - ghosts

Parameters
$iProfileId- profile id to get orphaned files from
$sFormat- output format, only 'json' output formt is supported
$sImagesTranscoder- transcoder object for files preview for images and videos, false by default - no preview
$iContentId- content id to get orphaned files from, false by default
Returns
JSON string

Reimplemented from BxDolUploader.

◆ isAdmin()

BxBaseModProfileUploaderCrop::isAdmin ( $iContentId = 0)
protected

Reimplemented from BxDolUploader.


The documentation for this class was generated from the following file:
  • modules/base/profile/classes/BxBaseModProfileUploaderCrop.php