Cheetah
Public Member Functions | List of all members
ChPhotosUploader Class Reference
Inheritance diagram for ChPhotosUploader:
ChWsbFilesUploader ChWsbTemplate

Public Member Functions

 __construct ()
 
 getEmbedFormFile ()
 
 getRecordFormFile ($aExtras)
 
 GenSendFileInfoForm ($iFileID, $aDefaultValues=array())
 
 serviceAcceptRecordFile ()
 
 serviceAcceptEmbedFile ()
 
 serviceAcceptFileInfo ()
 
 _embedPhoto ($sPhotoId, $sTitle, $sDesc, $sTags, $sImage)
 
 servicePerformPhotoUpload ($sTmpFilename, $aFileInfo, $isUpdateThumb, $iAuthorId=0)
 
 servicePerformPhotoReplace ($sTmpFilename, $aFileInfo, $isUpdateThumb, $iPhotoID)
 
 performUpload ($sFilePath, $sRealFilename='', $aInfo=array(), $isMoveUploadedFile=true, $aExtraParams=array())
 
 getUploadHtml5FileImageTransform ()
 
 _recordPhoto ()
 
 initFile ($iMedID, $sTitle, $sCategories='', $sTags='', $sDesc='', $aCustom=array())
 
 performPhotoUpload ($sTmpFile, $aFileInfo, $bAutoAssign2Profile=false, $isMoveUploadedFile=true, $iChangingPhotoID=0, $iAuthorId=0)
 
 setPrimarySharedPhoto ($iPhotoID, $iAuthorId=0)
 
 updateMediaShared ($iMediaID, $aFileInfo)
 
- Public Member Functions inherited from ChWsbFilesUploader
 __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)
 
 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 ()
 
 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)
 
- Public Attributes inherited from ChWsbFilesUploader
 $_iOwnerId
 
 $_sJsPostObject
 
 $sWorkingFile
 
 $_aExtras
 
 $sSendFileInfoFormCaption
 
 $iMaxFilesize
 
 $sAcceptMimeType = '*'
 
 $bImageAutoRotate = 0
 
 $sUploadTypeNC
 
 $sUploadTypeLC
 
 $sTempFilename
 
 $oModule
 
- Public Attributes inherited from ChWsbTemplate
 $_sPrefix
 
 $_sRootPath
 
 $_sRootUrl
 
 $_sInjectionsTable
 
 $_sInjectionsCache
 
 $_sCode
 
 $_sCodeKey
 
 $_sKeyWrapperHtml
 
 $_sFolderHtml
 
 $_sFolderCss
 
 $_sFolderImages
 
 $_sFolderIcons
 
 $_aTemplates
 
 $_aLocations
 
 $_aLocationsJs
 
 $_bCacheEnable
 
 $_sCacheFolderUrl
 
 $_sCachePublicFolderUrl
 
 $_sCachePublicFolderPath
 
 $_sCacheFilePrefix
 
 $_bImagesInline
 
 $_iImagesMaxSize
 
 $_bCssCache
 
 $_bCssArchive
 
 $_sCssCachePrefix
 
 $_bJsCache
 
 $_bJsArchive
 
 $_sJsCachePrefix
 

Detailed Description

Definition at line 24 of file ChPhotosUploader.php.

Constructor & Destructor Documentation

◆ __construct()

ChPhotosUploader::__construct ( )

Definition at line 27 of file ChPhotosUploader.php.

Member Function Documentation

◆ _embedPhoto()

ChPhotosUploader::_embedPhoto (   $sPhotoId,
  $sTitle,
  $sDesc,
  $sTags,
  $sImage 
)

Definition at line 177 of file ChPhotosUploader.php.

◆ _recordPhoto()

ChPhotosUploader::_recordPhoto ( )

Definition at line 246 of file ChPhotosUploader.php.

◆ GenSendFileInfoForm()

ChPhotosUploader::GenSendFileInfoForm (   $iFileID,
  $aDefaultValues = array() 
)

Definition at line 50 of file ChPhotosUploader.php.

◆ getEmbedFormFile()

ChPhotosUploader::getEmbedFormFile ( )

Definition at line 38 of file ChPhotosUploader.php.

◆ getRecordFormFile()

ChPhotosUploader::getRecordFormFile (   $aExtras)

Definition at line 44 of file ChPhotosUploader.php.

◆ getUploadHtml5FileImageTransform()

ChPhotosUploader::getUploadHtml5FileImageTransform ( )

Reimplemented from ChWsbFilesUploader.

Definition at line 237 of file ChPhotosUploader.php.

◆ initFile()

ChPhotosUploader::initFile (   $iMedID,
  $sTitle,
  $sCategories = '',
  $sTags = '',
  $sDesc = '',
  $aCustom = array() 
)

Reimplemented from ChWsbFilesUploader.

Definition at line 261 of file ChPhotosUploader.php.

◆ performPhotoUpload()

ChPhotosUploader::performPhotoUpload (   $sTmpFile,
  $aFileInfo,
  $bAutoAssign2Profile = false,
  $isMoveUploadedFile = true,
  $iChangingPhotoID = 0,
  $iAuthorId = 0 
)

Definition at line 268 of file ChPhotosUploader.php.

◆ performUpload()

ChPhotosUploader::performUpload (   $sFilePath,
  $sRealFilename = '',
  $aInfo = array(),
  $isMoveUploadedFile = true,
  $aExtraParams = array() 
)
Returns
array with the following keys:
  • id: uploaded file ID if file was successfully uploaded
  • error: error message if file wasn't successfully uploaded

Reimplemented from ChWsbFilesUploader.

Definition at line 208 of file ChPhotosUploader.php.

◆ serviceAcceptEmbedFile()

ChPhotosUploader::serviceAcceptEmbedFile ( )

Definition at line 77 of file ChPhotosUploader.php.

◆ serviceAcceptFileInfo()

ChPhotosUploader::serviceAcceptFileInfo ( )

Definition at line 134 of file ChPhotosUploader.php.

◆ serviceAcceptRecordFile()

ChPhotosUploader::serviceAcceptRecordFile ( )

Definition at line 71 of file ChPhotosUploader.php.

◆ servicePerformPhotoReplace()

ChPhotosUploader::servicePerformPhotoReplace (   $sTmpFilename,
  $aFileInfo,
  $isUpdateThumb,
  $iPhotoID 
)

Definition at line 198 of file ChPhotosUploader.php.

◆ servicePerformPhotoUpload()

ChPhotosUploader::servicePerformPhotoUpload (   $sTmpFilename,
  $aFileInfo,
  $isUpdateThumb,
  $iAuthorId = 0 
)

Definition at line 191 of file ChPhotosUploader.php.

◆ setPrimarySharedPhoto()

ChPhotosUploader::setPrimarySharedPhoto (   $iPhotoID,
  $iAuthorId = 0 
)

Definition at line 405 of file ChPhotosUploader.php.

◆ updateMediaShared()

ChPhotosUploader::updateMediaShared (   $iMediaID,
  $aFileInfo 
)

Definition at line 410 of file ChPhotosUploader.php.


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