function serviceCancelFileInfo() { if ($bRet = parent::serviceCancelFileInfo()) { deleteVideo($iFileID, $this->oModule->_oConfig->aFilesConfig); } return $bRet; }
function BxSoundsUploader() { parent::BxDolFilesUploader('Sound'); $this->oModule = BxDolModule::getInstance('BxSoundsModule'); $this->sWorkingFile = $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects'; $this->sMultiUploaderParams['accept_file'] = $this->sWorkingFile; $this->sMultiUploaderParams['form_caption'] = _t('_bx_sounds_add_objects'); $this->sMultiUploaderParams['accept_format'] = $this->oModule->_oConfig->getAvailableFlashExts(); $this->sMultiUploaderParams['accept_format_desc'] = 'Music Files'; }
function BxPhotosUploader() { parent::BxDolFilesUploader('Photo'); $this->oModule = BxDolModule::getInstance('BxPhotosModule'); $this->sWorkingFile = BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects'; $this->sMultiUploaderParams['accept_format'] = $this->oModule->_oConfig->getAvailableFlashExts(); $this->sMultiUploaderParams['accept_file'] = $this->sWorkingFile; $this->sMultiUploaderParams['form_caption'] = _t('_bx_photos_add_objects'); /*$this->sMultiUploaderParams['post_params'] = '{action: "accept_multi_files", oid: "'.$this->_iOwnerId.'", "extra_param_album": "__extra_param_album__"}';*/ }
function __construct() { parent::__construct('Sound'); $this->oModule = BxDolModule::getInstance('BxSoundsModule'); $this->sWorkingFile = BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects'; $iMaxByAdmin = 1024 * 1024 * (int) getParam($this->oModule->_oConfig->getMainPrefix() . '_max_file_size'); if ($iMaxByAdmin > 0 && $iMaxByAdmin < $this->iMaxFilesize) { $this->iMaxFilesize = $iMaxByAdmin; } $this->sAcceptMimeType = 'audio/*'; }
function BxSoundsUploader() { parent::BxDolFilesUploader('Sound'); $this->oModule = BxDolModule::getInstance('BxSoundsModule'); $this->sWorkingFile = BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects'; $this->sMultiUploaderParams['accept_file'] = $this->sWorkingFile; $this->sMultiUploaderParams['form_caption'] = _t('_bx_sounds_add_objects'); $this->sMultiUploaderParams['accept_format'] = $this->oModule->_oConfig->getAvailableFlashExts(); $this->sMultiUploaderParams['accept_format_desc'] = 'Music Files'; $iMaxByAdmin = 1024 * 1024 * (int) getParam($this->oModule->_oConfig->getMainPrefix() . '_max_file_size'); if ($iMaxByAdmin > 0 && $iMaxByAdmin < $this->iMaxFilesize) { $this->iMaxFilesize = $iMaxByAdmin; } $this->sMultiUploaderParams['file_size_limit'] = $this->iMaxFilesize; }
function initFile($iMedID, $sTitle, $sCategories = '', $sTags = '', $sDesc = '', $aCustom = array()) { $aCustom['Approved'] = getParam('bx_photos_activation') == 'on' ? 'approved' : 'pending'; return parent::initFile($iMedID, $sTitle, $sCategories, $sTags, $sDesc, $aCustom); }
function getUploadFormArray(&$aForm, $aAddObjects = array()) { $aForm = parent::getUploadFormArray($aForm, $aAddObjects); $aForm['AllowView'] = $this->oModule->oPrivacy->getGroupChooser($this->_iOwnerId, $this->oModule->_oConfig->getUri(), 'download'); return $aForm; }