Exemplo n.º 1
0
 function serviceCancelFileInfo()
 {
     if ($bRet = parent::serviceCancelFileInfo()) {
         deleteVideo($iFileID, $this->oModule->_oConfig->aFilesConfig);
     }
     return $bRet;
 }
Exemplo n.º 2
0
 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';
 }
Exemplo n.º 3
0
 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__"}';*/
 }
Exemplo n.º 4
0
 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/*';
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 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;
 }