UNA
Loading...
Searching...
No Matches
BxBaseStudioSettingsUploaderHTML5 Class Reference
Inheritance diagram for BxBaseStudioSettingsUploaderHTML5:
BxTemplUploaderHTML5 BxBaseUploaderHTML5 BxDolUploader BxDolFactory BxTemplStudioSettingsUploaderHTML5

Public Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from BxDolUploader
static getObjectInstance ($sObject, $sStorageObject, $sResultContainerId, $oTemplate=false)
 
- Protected Member Functions inherited from BxDolUploader
 cleanUploadErrorMessages ()
 
 getRestrictionsText ()
 
 getMaxUploadFileSize ()
 
 getAcceptedFilesExtensions ()
 
 getGhostTemplateVars ($aFile, $iProfileId, $iContentId, $oStorage, $oImagesTranscoder)
 
 isUseTranscoderForPreview ($oImagesTranscoder, $aFile)
 
 isAdmin ($iContentId=0)
 
- Protected Attributes inherited from BxBaseUploaderHTML5
 $_sDivId
 
 $_sFocusDivId
 
 $_sProgressDivId
 
- Protected Attributes inherited from BxDolUploader
 $_oTemplate
 
 $_aObject
 
 $_sStorageObject
 
 $_sUniqId
 
 $_sUploaderJsInstance
 
 $_sUploadInProgressContainerId
 
 $_sPopupContainerId
 
 $_sResultContainerId
 
 $_sErrorsContainerId
 
 $_sFormContainerId
 
 $_sUploadErrorMessages
 
 $_sButtonTemplate
 
 $_sJsTemplate
 
 $_sUploaderFormTemplate
 
 $_aJs
 
 $_aCss
 

Detailed Description

Upload files using AJAX uploader with multiple files selection support (without flash), it works in Firefox and WebKit(Safari, Chrome) browsers only, but has fallback for other browsers (IE, Opera).

See also
BxDolUploader

Constructor & Destructor Documentation

◆ __construct()

BxBaseStudioSettingsUploaderHTML5::__construct ( $aObject,
$sStorageObject,
$sUniqId,
$oTemplate )

constructor

Reimplemented from BxTemplUploaderHTML5.

Reimplemented in BxTemplStudioSettingsUploaderHTML5.

Member Function Documentation

◆ deleteGhost()

BxBaseStudioSettingsUploaderHTML5::deleteGhost ( $iFileId,
$iProfileId )

Delete file by file id, usually ghost file

Returns
'ok' string on success or error string on error

Reimplemented from BxDolUploader.

◆ getGhosts()

BxBaseStudioSettingsUploaderHTML5::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.

◆ handleUploads()

BxBaseStudioSettingsUploaderHTML5::handleUploads ( $iProfileId,
$mixedFiles,
$isMultiple = true,
$iContentId = false,
$bPrivate = true )

Handle uploads here.

Parameters
$mixedFilesas usual $_FILES['some_name'] array, but maybe some other params depending on the uploader
Returns
nothing, but if some files failed to upload, the actual error message can be determined by calling BxDolUploader\getUploadErrorMessages()

Reimplemented from BxBaseUploaderHTML5.


The documentation for this class was generated from the following file: