UNA
Loading...
Searching...
No Matches
BxBaseModProfileFormsEntryHelper Class Reference
Inheritance diagram for BxBaseModProfileFormsEntryHelper:
BxBaseModGeneralFormsEntryHelper BxDolProfileForms BxDolFactory BxBaseModGroupsFormsEntryHelper BxPersonsFormsEntryHelper BxCnlFormsEntryHelper BxCoursesFormsEntryHelper BxEventsFormsEntryHelper BxGroupsFormsEntryHelper BxJobsFormsEntryHelper BxOrgsFormsEntryHelper BxSpacesFormsEntryHelper

Public Member Functions

 __construct ($oModule)
 
 isAutoApproval ($sAction=BX_DOL_PROFILE_ACTIVATE_ALWAYS)
 
 setAutoApproval ($mValue)
 
 deleteData ($iContentId, $aContentInfo=false, $oProfile=null, $oForm=null)
 
 deleteDataService ($iContentId, $aContentInfo=false, $oProfile=null, $oForm=null)
 
 onDataDeleteAfter ($iContentId, $aContentInfo, $oProfile)
 
 onDataEditBefore ($iContentId, $aContentInfo, &$aTrackTextFieldsChanges, &$oProfile, &$oForm)
 
 onDataEditAfter ($iContentId, $aContentInfo, $aTrackTextFieldsChanges, $oProfile, $oForm)
 
 onDataAddAfter ($iAccountId, $iContentId)
 
 redirectAfterAdd ($aContentInfo, $sUrl='')
 
- Public Member Functions inherited from BxBaseModGeneralFormsEntryHelper
 setAjaxMode ($bAjaxMode)
 
 setAbsoluteActionUrl ($bAbsoluteActionUrl)
 
 setContextId ($mixedContextId)
 
 setDynamicMode ($bDynamicMode)
 
 getObjectStorage ()
 
 getObjectFormAdd ($sDisplay=false)
 
 getObjectFormEdit ($sDisplay=false)
 
 getObjectFormView ($sDisplay=false)
 
 getObjectFormDelete ($sDisplay=false)
 
 viewDataEntry ($iContentId)
 
 addData ($iProfile, $aValues, $sDisplay=false)
 
 addDataForm ($sDisplay=false, $sCheckFunction=false)
 
 editDataForm ($iContentId, $sDisplay=false, $sCheckFunction=false, $bErrorMsg=true)
 
 deleteDataForm ($iContentId, $sDisplay=false, $sCheckFunction=false)
 
 viewDataForm ($iContentId, $sDisplay=false)
 

Protected Member Functions

 _getProfileAndContentData ($iContentId)
 
- Protected Member Functions inherited from BxBaseModGeneralFormsEntryHelper
 redirectAfterEdit ($aContentInfo, $sUrl='')
 
 redirectAfterDelete ($aContentInfo)
 
 _processPermissionsCheckForViewDataForm ($aContentInfo, $oProfile)
 
 prepareCustomRedirectUrl ($s, $aContentInfo)
 
 prepareResponse ($mixedResponse, $bAsJson=false, $sKey='msg', $aAdditional=array())
 
 _setAbsoluteActionUrl ($sType, &$oForm)
 
- Protected Member Functions inherited from BxDolProfileForms
 __construct ()
 
 _redirectAndExit ($sUrl, $isPermalink=true, $aMarkers=false)
 
 _replaceMarkers ($mixed, $aMarkers)
 

Protected Attributes

 $_sAutoApproval = false
 
- Protected Attributes inherited from BxBaseModGeneralFormsEntryHelper
 $_oModule
 
 $_bIsApi
 
 $_bDynamicMode
 
 $_bAjaxMode
 
 $_bAbsoluteActionUrl
 
 $_mixedContextId
 

Detailed Description

Profile forms helper functions

Constructor & Destructor Documentation

◆ __construct()

BxBaseModProfileFormsEntryHelper::__construct ( $oModule)

Reimplemented from BxBaseModGeneralFormsEntryHelper.

Member Function Documentation

◆ deleteData()

BxBaseModProfileFormsEntryHelper::deleteData ( $iContentId,
$aContentInfo = false,
$oProfile = null,
$oForm = null )

Delete data entry

Parameters
$iContentIdentry id
$oFormoptional content info array
$aContentInfooptional content info array
$oProfileoptional content author profile
Returns
error string on error or empty string on success

Hooks:

'{module_name}', 'deleted' - hook after content was deleted

  • $unit_name - module name
  • $action - equals deleted
  • $object_id - content id
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

Reimplemented from BxBaseModGeneralFormsEntryHelper.

◆ onDataAddAfter()

BxBaseModProfileFormsEntryHelper::onDataAddAfter ( $iAccountId,
$iContentId )

Reimplemented from BxBaseModGeneralFormsEntryHelper.

◆ onDataDeleteAfter()

BxBaseModProfileFormsEntryHelper::onDataDeleteAfter ( $iContentId,
$aContentInfo,
$oProfile )

Reimplemented from BxBaseModGeneralFormsEntryHelper.

◆ onDataEditAfter()

BxBaseModProfileFormsEntryHelper::onDataEditAfter ( $iContentId,
$aContentInfo,
$aTrackTextFieldsChanges,
$oProfile,
$oForm )

Reimplemented from BxBaseModGeneralFormsEntryHelper.

◆ onDataEditBefore()

BxBaseModProfileFormsEntryHelper::onDataEditBefore ( $iContentId,
$aContentInfo,
& $aTrackTextFieldsChanges,
& $oProfile,
& $oForm )

Reimplemented from BxBaseModGeneralFormsEntryHelper.

◆ redirectAfterAdd()

BxBaseModProfileFormsEntryHelper::redirectAfterAdd ( $aContentInfo,
$sUrl = '' )

Reimplemented from BxBaseModGeneralFormsEntryHelper.


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