|
Cheetah
|
Public Member Functions | |
| __construct ($sUploadTypeNC='Common') | |
| _addHidden ($sPostType="photo", $sContentType="upload", $sAction="post", $iIndex=1) | |
| _getAuthorId () | |
| _getAuthorPassword () | |
| _getExtraParams (&$aRequest) | |
| _updateExtraParams ($aExtra, $iFileId, $iAuthorId) | |
| _GenMainAddCommonForm ($aExtras=array(), $aUploaders=array()) | |
| _getEmbedFormFile () | |
| _getRecordFormFile ($sCustomRecorderObject='', $aExtras=array()) | |
| getLoadingCode () | |
| GenJquieryInjection () | |
| embedReadUrl ($sUrl) | |
| embedGetTagContents ($sData, $sTag) | |
| embedGetTagAttributes ($sData, $sTag, $sAttribute="") | |
| embedGetStringPart ($sData, $sLeft, $sRight) | |
| checkAuthorBeforeAdd () | |
| getUploadFormHtml5Files () | |
| getUploadHtml5File ($aExtras) | |
| performUpload ($sFilePath, $sRealFilename='', $aInfo=array(), $isMoveUploadedFile=true, $aExtraParams=array()) | |
| getUploadHtml5FileImageTransform () | |
| performAcceptHtml5File ($aFiles, &$aReady, $name='file') | |
| fetchImagesForAcceptHtml5File ($files, &$images, $name='file') | |
| serviceAcceptHtml5File () | |
| serviceAcceptHtml5FilesInfo () | |
| getUploadFormFile ($aExtras) | |
| _GenSendFileInfoForm ( $iFileID, $aDefaultValues=array(), $aPossibleImage=array(), $aPossibleDuration=array()) | |
| addObjectToAlbum (&$oAlbums, $sAlbumUri, $iObjId, $bUpdateCounter=true, $iAuthorId=0, $aAlbumParams=array()) | |
| getUploadFormArray (&$aForm, $aAddObjects=array()) | |
| serviceIsExtAllowed ($sExt) | |
| serviceAcceptUpload ($sAction) | |
| serviceAcceptFile () | |
| initFile ($iMedID, $sTitle, $sCategories='', $sTags='', $sDesc='', $aCustom=array()) | |
| alertAdd ($iMedID, $bCheckPrivacy=false) | |
| serviceCancelFileInfo () | |
| _shareFile ($sFilePath, $isMoveUploadedFile=true, $sRealFilename='', $aExtraParams=array()) | |
| getFileAddError ($sMessage='') | |
| GenMainAddFilesForm ($aExtras=array()) | |
| serviceGetUploadersList () | |
| serviceGetUploaderForm ($aExtras) | |
| insertSharedMediaToDb ($sExt, $aFileInfo, $iAuthorId=0, $aExtraData=array()) | |
Public Member Functions inherited from ChWsbTemplate | |
| __construct ($sRootPath=CH_DIRECTORY_PATH_ROOT, $sRootUrl=CH_WSB_URL_ROOT) | |
| loadTemplates () | |
| init () | |
| addLocation ($sKey, $sLocationPath, $sLocationUrl) | |
| addDynamicLocation ($sLocationPath, $sLocationUrl) | |
| removeLocation ($sKey) | |
| addLocationJs ($sKey, $sLocationPath, $sLocationUrl) | |
| addDynamicLocationJs ($sLocationPath, $sLocationUrl) | |
| removeLocationJs ($sKey) | |
| getCodeKey () | |
| getCode () | |
| getPageWidth () | |
| setPageWidth ($sWidth) | |
| setPageTitle ($sTitle) | |
| setPageMainBoxTitle ($sTitle) | |
| setPageDescription ($sDescription) | |
| addJsOption ($mixedName) | |
| addJsTranslation ($mixedKey) | |
| addJsImage ($aImages) | |
| addJsIcon ($aIcons) | |
| addCssStyle ($sName, $sContent) | |
| addPageKeywords ($mixedKeywords, $sDevider=',') | |
| setOpenGraphInfo ($a, $sNamespace='og') | |
| getMetaInfo () | |
| getTemplate ($sName) | |
| getIconUrl ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| getIconPath ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| getImageUrl ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| getImagePath ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| getCssUrl ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| getCssPath ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| getHtml ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| parseHtmlByName ($sName, $aVariables, $mixedKeyWrapperHtml=null, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| parseHtmlByContent ($sContent, $aVariables, $mixedKeyWrapperHtml=null) | |
| parseHtmlByTemplateName ($sName, $aVariables, $mixedKeyWrapperHtml=null) | |
| parsePageByName ($sName, $aVariables) | |
| parseSystemKey ($sKey, $mixedKeyWrapperHtml=null) | |
| getTemplatesCacheObject () | |
| getCached ($sName, &$aVariables, $mixedKeyWrapperHtml=null, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH, $bEvaluate=true) | |
| addJs ($mixedFiles, $bDynamic=false) | |
| addJsSystem ($mixedFiles) | |
| deleteJs ($mixedFiles) | |
| deleteJsSystem ($mixedFiles) | |
| _compileJs ($sAbsolutePath, &$aIncluded) | |
| _wrapInTagJs ($sFile) | |
| _wrapInTagJsCode ($sCode) | |
| addCss ($mixedFiles, $bDynamic=false) | |
| addCssAsync ($mixedFiles) | |
| includeCssAsync () | |
| addCssSystem ($mixedFiles) | |
| deleteCss ($mixedFiles) | |
| deleteCssSystem ($mixedFiles) | |
| _compileCss ($sAbsolutePath, &$aIncluded) | |
| _minifyCss ($s) | |
| _wrapInTagCss ($sFile) | |
| _wrapInTagCssCode ($sCode) | |
| includeCssStyles () | |
| includeFiles ($sType, $bSystem=false) | |
| _includeFiles ($sType, &$aFiles) | |
| _processFiles ($sType, $sAction, $mixedFiles, $bDynamic=false, $bSystem=false) | |
| _parseContent ($sContent, $aVariables, $mixedKeyWrapperHtml=null) | |
| _compileContent ($sContent, $aVarName, $iVarDepth, $aVarValues, $mixedKeyWrapperHtml=null) | |
| _getAbsoluteLocation ($sType, $sFolder, $sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH) | |
| _getAbsoluteLocationJs ($sType, $sName) | |
| _getAbsoluteLocationCss ($sType, $sName) | |
| _getInlineData ($sType, $sName, $sCheckIn) | |
| _getCacheFileName ($sType, $sAbsolutePath) | |
| _getKeyWrappers ($mixedKeyWrapperHtml) | |
| _processJsTranslations () | |
| _processJsOptions () | |
| _processJsImages () | |
| _getLoaderUrl ($sType, $sName) | |
| displayAccessDenied () | |
| displayNoData () | |
| displayErrorOccured () | |
| displayPageNotFound () | |
| displayMsg ($s, $bTranslate=false) | |
| processInjection ($iPageIndex, $sKey, $sValue="") | |
| addInjection ($sKey, $sType, $sData, $iReplace=0) | |
Additional Inherited Members | |
Static Public Member Functions inherited from ChWsbTemplate | |
| static | _callbackParseUrl ($sPath, $aMatches) |
Definition at line 12 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::__construct | ( | $sUploadTypeNC = 'Common' | ) |
Definition at line 32 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_addHidden | ( | $sPostType = "photo", |
|
$sContentType = "upload", |
|||
$sAction = "post", |
|||
$iIndex = 1 |
|||
| ) |
Definition at line 61 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_GenMainAddCommonForm | ( | $aExtras = array(), |
|
$aUploaders = array() |
|||
| ) |
Definition at line 148 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_GenSendFileInfoForm | ( | $iFileID, | |
$aDefaultValues = array(), |
|||
$aPossibleImage = array(), |
|||
$aPossibleDuration = array() |
|||
| ) |
Definition at line 669 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_getAuthorId | ( | ) |
Definition at line 102 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_getAuthorPassword | ( | ) |
Definition at line 107 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_getEmbedFormFile | ( | ) |
Definition at line 216 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_getExtraParams | ( | & | $aRequest | ) |
Definition at line 112 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_getRecordFormFile | ( | $sCustomRecorderObject = '', |
|
$aExtras = array() |
|||
| ) |
Definition at line 273 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_shareFile | ( | $sFilePath, | |
$isMoveUploadedFile = true, |
|||
$sRealFilename = '', |
|||
$aExtraParams = array() |
|||
| ) |
Definition at line 993 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::_updateExtraParams | ( | $aExtra, | |
| $iFileId, | |||
| $iAuthorId | |||
| ) |
Definition at line 124 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::addObjectToAlbum | ( | & | $oAlbums, |
| $sAlbumUri, | |||
| $iObjId, | |||
$bUpdateCounter = true, |
|||
$iAuthorId = 0, |
|||
$aAlbumParams = array() |
|||
| ) |
Definition at line 833 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::alertAdd | ( | $iMedID, | |
$bCheckPrivacy = false |
|||
| ) |
Definition at line 972 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::checkAuthorBeforeAdd | ( | ) |
Definition at line 395 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::embedGetStringPart | ( | $sData, | |
| $sLeft, | |||
| $sRight | |||
| ) |
Definition at line 387 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::embedGetTagAttributes | ( | $sData, | |
| $sTag, | |||
$sAttribute = "" |
|||
| ) |
Definition at line 360 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::embedGetTagContents | ( | $sData, | |
| $sTag | |||
| ) |
Definition at line 341 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::embedReadUrl | ( | $sUrl | ) |
Definition at line 336 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::fetchImagesForAcceptHtml5File | ( | $files, | |
| & | $images, | ||
$name = 'file' |
|||
| ) |
Definition at line 509 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::GenJquieryInjection | ( | ) |
Definition at line 331 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::GenMainAddFilesForm | ( | $aExtras = array() | ) |
Definition at line 1015 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::getFileAddError | ( | $sMessage = '' | ) |
Definition at line 1008 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::getLoadingCode | ( | ) |
Definition at line 326 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::getUploadFormArray | ( | & | $aForm, |
$aAddObjects = array() |
|||
| ) |
Reimplemented in ChFilesUploader.
Definition at line 873 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::getUploadFormFile | ( | $aExtras | ) |
Definition at line 614 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::getUploadFormHtml5Files | ( | ) |
Form for file titles. Form titles fields are added upon form upload. Upon this form submit serviceAcceptHtml5FilesInfo method is called.
Definition at line 407 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::getUploadHtml5File | ( | $aExtras | ) |
Definition at line 441 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::getUploadHtml5FileImageTransform | ( | ) |
Reimplemented in ChPhotosUploader.
Definition at line 490 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::initFile | ( | $iMedID, | |
| $sTitle, | |||
$sCategories = '', |
|||
$sTags = '', |
|||
$sDesc = '', |
|||
$aCustom = array() |
|||
| ) |
Reimplemented in ChPhotosUploader, and ChFilesUploader.
Definition at line 940 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::insertSharedMediaToDb | ( | $sExt, | |
| $aFileInfo, | |||
$iAuthorId = 0, |
|||
$aExtraData = array() |
|||
| ) |
Definition at line 1040 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::performAcceptHtml5File | ( | $aFiles, | |
| & | $aReady, | ||
$name = 'file' |
|||
| ) |
Definition at line 496 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::performUpload | ( | $sFilePath, | |
$sRealFilename = '', |
|||
$aInfo = array(), |
|||
$isMoveUploadedFile = true, |
|||
$aExtraParams = array() |
|||
| ) |
Perform file upload with all checks etc. NOTE: this function sets $sTempFilename class property to the uploaded filename (without extension)
| $sFilePath | - uploaded file path |
| $sRealFilename | - real file name without path |
| $aInfo | - file info such as title, description, etc |
| $isMoveUploadedFile | - perform move_uploaded_file for $sFilePath |
| $aExtraParams | - additional parameters to pass in the particular module |
Reimplemented in ChVideosUploader, ChSoundsUploader, ChPhotosUploader, and ChFilesUploader.
Definition at line 485 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::serviceAcceptFile | ( | ) |
Definition at line 918 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::serviceAcceptHtml5File | ( | ) |
Definition at line 538 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::serviceAcceptHtml5FilesInfo | ( | ) |
Definition at line 584 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::serviceAcceptUpload | ( | $sAction | ) |
Handle uploads
| $sAction | uploader 'action' name |
Definition at line 897 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::serviceCancelFileInfo | ( | ) |
Reimplemented in ChVideosUploader.
Definition at line 983 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::serviceGetUploaderForm | ( | $aExtras | ) |
Generate video upload main form
| $aExtras | - predefined album and category should appear here |
Definition at line 1035 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::serviceGetUploadersList | ( | ) |
Get array of available uploaders.
Definition at line 1025 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::serviceIsExtAllowed | ( | $sExt | ) |
Definition at line 884 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$_aExtras |
Definition at line 17 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$_iOwnerId |
Definition at line 14 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$_sJsPostObject |
Definition at line 15 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$bImageAutoRotate = 0 |
Definition at line 22 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$iMaxFilesize |
Definition at line 20 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$oModule |
Definition at line 29 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$sAcceptMimeType = '*' |
Definition at line 21 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$sSendFileInfoFormCaption |
Definition at line 19 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$sTempFilename |
Definition at line 27 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$sUploadTypeLC |
Definition at line 25 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$sUploadTypeNC |
Definition at line 24 of file ChWsbFilesUploader.php.
| ChWsbFilesUploader::$sWorkingFile |
Definition at line 16 of file ChWsbFilesUploader.php.