Cheetah
Public Member Functions | Public Attributes | List of all members
ChStoreFormAdd Class Reference
Inheritance diagram for ChStoreFormAdd:
ChWsbFormMedia ChTemplFormView ChBaseFormView ChWsbForm ChStoreFormEdit

Public Member Functions

 __construct ($oMain, $iProfileId, $isRemovePhotoFieldAllowed=true, $iEntryId=0, $iThumb=0)
 
 uploadFiles ($sTag, $sCat, $sName='files', $sTitle='files_titles', $sTitleAlt='title', $sPrivacy='allow_purchase_to')
 
 processMedia ($iEntryId, $iProfileId)
 
- Public Member Functions inherited from ChWsbFormMedia
 __construct ($aCustomForm)
 
 uploadPhotos ($sTag, $sCat, $sName='images', $sTitle='images_titles', $sTitleAlt='title')
 
 uploadVideos ($sTag, $sCat, $sName='videos', $sTitle='videos_titles', $sTitleAlt='title')
 
 uploadSounds ($sTag, $sCat, $sName='sounds', $sTitle='sounds_titles', $sTitleAlt='title')
 
 uploadFiles ($sTag, $sCat, $sName='files', $sTitle='files_titles', $sTitleAlt='title')
 
 insertMedia ($iEntryId, $aMedia, $sMediaType)
 
 updateMedia ($iEntryId, $aMediaAdd, $aMediaDelete, $sMediaType)
 
 deleteMedia ($iEntryId, $aMedia, $sMediaType)
 
 _validateMediaIds ($aMedia)
 
 _getFilesInEntry ($sModuleName, $sServiceMethod, $sName, $sMediaType, $iIdProfile, $iEntryId)
 
 generateCustomMediaTemplates ($iProfileId, $iEntryId, $iThumb=0)
 
 processMembershipChecksForMediaUploads (&$aInputs)
 
- Public Member Functions inherited from ChBaseFormView
 getCode ()
 
 genForm ()
 
 genTable ()
 
 genRow (&$aInput)
 
 genRowStandard (&$aInput)
 
 genRowSelectBox (&$aInput)
 
 genRowHeaders (&$aInput)
 
 genRowBlockHeader (&$aInput)
 
 genBlockEnd ()
 
 genWrapperInput ($aInput, $sContent)
 
 genInput (&$aInput)
 
 getInputId (&$aInput)
 
 genInputStandard (&$aInput)
 
 genInputButton (&$aInput)
 
 genInputTextarea (&$aInput)
 
 addHtmlEditor ($iViewMode, &$aInput)
 
 genInputSelect (&$aInput)
 
 genInputSelectBox (&$aInput, $sInfo='', $sError='')
 
 genInputSelectMultiple (&$aInput)
 
 genInputCheckboxSet (&$aInput)
 
 genInputRadioSet (&$aInput)
 
 genInputCaptcha (&$aInput)
 
 genLabel (&$aInput)
 
 convertArray2Attrs ($a)
 
 genInfoIcon ($sInfo)
 
 genErrorIcon ( $sError='')
 
 getOpenTbody ($aAttrsAdd=false)
 
 getCloseTbody ()
 
 getInput ($sType, $sAttrs, $sContent='')
 
 addCssJs ($isDateControl=false, $isDateTimeControl=false)
 
- Public Member Functions inherited from ChWsbForm
 initChecker ($aValues=array())
 
 insert ($aValsToAdd=array())
 
 update ($val, $aValsToAdd=array())
 
 generateUri ()
 
 getCleanValue ($sName)
 
 isSubmitted ()
 
 isValid ()
 
 isSubmittedAndValid ()
 
 genCsrfToken ($bReturn=false)
 
 getCsrfTokenTime ()
 

Public Attributes

 $_oMain
 
 $_oDb
 
- Public Attributes inherited from ChWsbFormMedia
 $_aMedia = array()
 
- Public Attributes inherited from ChBaseFormView
 $bEnableErrorIcon = true
 
 $sCode
 
 $_sCodeAdd = ''
 
 $_isTbodyOpened = false
 
 $_isDateControl = false
 
 $_isDateTimeControl = false
 
- Public Attributes inherited from ChWsbForm
 $_isValid = true
 
 $_sCheckerHelper
 
 $aFormAttrs
 
 $aTableAttrs
 
 $aInputs
 
 $aParams
 
 $id
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbForm
static getSubmittedValue ($sKey, $sMethod)
 
static getCsrfToken ()
 

Detailed Description

Definition at line 11 of file ChStoreFormAdd.php.

Constructor & Destructor Documentation

◆ __construct()

ChStoreFormAdd::__construct (   $oMain,
  $iProfileId,
  $isRemovePhotoFieldAllowed = true,
  $iEntryId = 0,
  $iThumb = 0 
)

Definition at line 16 of file ChStoreFormAdd.php.

Member Function Documentation

◆ processMedia()

ChStoreFormAdd::processMedia (   $iEntryId,
  $iProfileId 
)

process media upload updates call it after successful call $form->insert/update functions

Parameters
$iEntryIdassociated entry id
Returns
nothing

Reimplemented from ChWsbFormMedia.

Definition at line 372 of file ChStoreFormAdd.php.

◆ uploadFiles()

ChStoreFormAdd::uploadFiles (   $sTag,
  $sCat,
  $sName = 'files',
  $sTitle = 'files_titles',
  $sTitleAlt = 'title',
  $sPrivacy = 'allow_purchase_to' 
)

Definition at line 336 of file ChStoreFormAdd.php.

Member Data Documentation

◆ $_oDb

ChStoreFormAdd::$_oDb

Definition at line 14 of file ChStoreFormAdd.php.

◆ $_oMain

ChStoreFormAdd::$_oMain

Definition at line 13 of file ChStoreFormAdd.php.


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