1
0

BxBaseStudioSettingsUploaderHTML5.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaView UNA Studio Representation classes
  7. * @ingroup UnaStudio
  8. * @{
  9. */
  10. /**
  11. * Upload files using AJAX uploader with multiple files selection support (without flash),
  12. * it works in Firefox and WebKit(Safari, Chrome) browsers only, but has fallback for other browsers (IE, Opera).
  13. * @see BxDolUploader
  14. */
  15. class BxBaseStudioSettingsUploaderHTML5 extends BxTemplUploaderHTML5
  16. {
  17. function __construct ($aObject, $sStorageObject, $sUniqId, $oTemplate)
  18. {
  19. if(!$oTemplate)
  20. $oTemplate = BxDolStudioTemplate::getInstance();
  21. parent::__construct($aObject, $sStorageObject, $sUniqId, $oTemplate);
  22. }
  23. public function getGhosts($iProfileId, $sFormat, $sImagesTranscoder = false, $iContentId = false)
  24. {
  25. return parent::getGhosts(0, $sFormat, $sImagesTranscoder, $iContentId);
  26. }
  27. public function handleUploads ($iProfileId, $mixedFiles, $isMultiple = true, $iContentId = false, $bPrivate = true)
  28. {
  29. parent::handleUploads(0, $mixedFiles, $isMultiple, $iContentId, $bPrivate);
  30. }
  31. public function deleteGhost($iFileId, $iProfileId)
  32. {
  33. return parent::deleteGhost($iFileId, 0);
  34. }
  35. }
  36. /** @} */