UNA
Loading...
Searching...
No Matches
BxTemplFormAccount Class Reference
Inheritance diagram for BxTemplFormAccount:
BxBaseFormAccount BxTemplFormView BxBaseFormView BxBaseFormView BxDolForm BxDolForm BxDol iBxDolReplaceable BxDol iBxDolReplaceable BxAccntFormAccount

Public Member Functions

 __construct ($aInfo, $oTemplate=false)
Public Member Functions inherited from BxBaseFormAccount
 isValid ()
 isSetPendingApproval ()
 setPendingApproval ($b)
 initChecker ($aValues=[], $aSpecificValues=[])
 insert ($aValsToAdd=array(), $isIgnore=false)
 update ($val, $aValsToAdd=[], &$aTrackTextFieldsChanges=null)
 processFiles ($sFieldFile, $iAccountId=0, $isAssociateWithContent=false)
Public Member Functions inherited from BxTemplFormView
 genInputSwitcher (&$aInput)
Public Member Functions inherited from BxBaseFormView
 performActionGetHelp ()
 performActionChangePrivacyGroup ()
 performActionGetPrivacyGroupChooser ()
 setShowEmptySections ($b)
 setAjaxMode ($bAjaxMode)
 isAjaxMode ()
 setAbsoluteActionUrl ($sUrl)
 getCode ($bDynamicMode=false)
 getCodeAPI ()
 getJsClassName ()
 getJsObjectName ()
 getJsScript ($bWrap=false)
 genForm ()
 genRows ()
 genRow (&$aInput)
 isInputVisible ($mixedInput)
 genViewRow (&$aInput)
 genViewRowWrapped (&$aInput)
 genViewRowWrappedHtml (&$aInput)
 genViewRowValue (&$aInput)
 genViewRowValueForSelect (&$aInput)
 genRowStandard (&$aInput, $isOneLine=false)
 genWrapperInput ($aInput, $sContent)
 genRowCustom (&$aInput, $sCustomMethod)
 genRowBlockHeader (&$aInput)
 genBlockEnd ()
 genInput (&$aInput)
 getInputId (&$aInput)
 genInputStandard (&$aInput)
 genInputCheckbox (&$aInput, $bWrapped=false)
 genInputButton (&$aInput)
 genInputTextarea (&$aInput)
 isHtmlEditor ($iViewMode, &$aInput)
 addHtmlEditor ($iViewMode, &$aInput, $sUniq)
 getHtmlEditorQueryParams ($aInput)
 genInputSelectBox (&$aInput, $sInfo='', $sError='')
 genInputFile (&$aInput)
 genInputFiles (&$aInput, $sInfo='', $sError='')
 genInputSelect (&$aInput)
 genInputSelectRgb (&$aInput)
 genInputSelectMultiple (&$aInput)
 genInputCheckboxSet (&$aInput)
 genInputRadioSet (&$aInput)
 _isSelected ($sValue, $sCurValue)
 _isSelectedMultiple ($sValue, $aCurValues)
 _genInputSelect (&$aInput, $isMultiple, $mixedCurrentVal, $sIsSelectedFunc)
 _genInputsSet (&$aInput, $sType, $mixedCurrentVal, $sIsCheckedFunc, $sNameAppend='')
 genInputLocation (&$aInput)
 setLocationVals ($aInput, $aVals)
 setLocationVal ($aInput, $sIndex, $sVal)
 genInputPassword (&$aInput)
 genInputPrice (&$aInput)
 genInputNestedForm (&$aInput)
 genNestedForm (&$aInput)
 genInputCaptcha (&$aInput)
 genLabel (&$aInput)
 genPrivacyGroupChooser (&$aInput, $sPrivacyObject='')
 genFiledItemInfoWrapper ($sInput, $sInfoValue)
 genInfoIcon ($sInfo)
 genErrorIcon ( $sError='')
 getOpenSection ($aAttrs=[], $sTitle='', $aWrapperAttrs=[])
 getCloseSection ()
 getOpenSectionViewMode ($aAttrs=array(), $sTitle='', $aWrapperAttrs=[])
 getCloseSectionViewMode ()
 addCssJsUi ()
 addCssJsUiSortable ()
 addCssJsTimepicker ()
 addCssJsMinicolors ()
 addCssJsViewMode ()
 addCssJsCore ()
 addCssJs ()
Public Member Functions inherited from BxDolForm
 getKeyValuesPair ()
 isStatusFieldSupported ()
 autoSetToPending (&$aValsToAdd)
 delete ($val)
 generateUri ()
 getCleanValue ($sName)
 isSubmitted ()
 getTemplate ()
 getId ()
 getName ()
 setId ($sId)
 setName ($sName)
 setAction ($sAction)
 setForceSetToPending ($isValid)
 setValid ($isValid)
 isSubmittedAndValid ()
 getSpecificValues ()
 setSpecificValue ($sName, $sVal)
 getAuthorId ()
 setAuthorId ($iAuthorId)
 isFieldExist ($sName, $bCheckAllFields=false)
 _initCheckerNestedForms ()
 addMarkers ($a)
 getFormErrors ()

Additional Inherited Members

Static Public Member Functions inherited from BxBaseFormView
static getJsCalendarLangs ()
static getCssJsCalendar ()
Static Public Member Functions inherited from BxDolForm
static getObjectInstance ($sObject, $sDisplayName, $oTemplate=false, $sParam='')
static unSetObjectInstance ($sObject, $sDisplayName, $oTemplate=false, $sParam='')
static getDataItems ($sKey, $isUseForSet=false, $sUseValues=BX_DATA_VALUES_DEFAULT)
static getSubmittedValue ($sKey, $sMethod, &$aSpecificValues=false)
static setSubmittedValue ($sKey, $mixedValue, $sMethod, &$aSpecificValues=false)
static genCsrfToken ($bReturn=false)
static getCsrfToken ()
static isCsrfTokenValid ($s, $bDeleteToken=true)
static onModuleUninstall ($sModuleName)
static isVisible ($aInput)
Public Attributes inherited from BxDolForm
 $aFormAttrs
 $aInputs
 $aParams
 $id
Static Public Attributes inherited from BxBaseFormAccount
static $FIELD_PICTURE = 'picture'
static $FIELD_EMAIL = 'email'
static $FIELD_PASSWORD = 'password'
static $FIELD_PASSWORD_CHANGED = 'password_changed'
static $FIELD_SALT = 'salt'
static $FIELD_ADDED = 'added'
static $FIELD_CHANGED = 'changed'
static $FIELD_IP = 'ip'
static $FIELD_REFERRED = 'referred'
static $FIELD_PHONE = 'phone'
Static Public Attributes inherited from BxDolForm
static $TYPES_SKIP = array('files' => 1, 'location' => 1, 'nested_form' => 1)
static $TYPES_CHECKBOX = array('checkbox' => 1, 'switcher' => 1)
static $TYPES_TEXT = array('text' => 1, 'textarea' => 1)
static $TYPES_FILE = array('file' => 1)
static $FUNC_SKIP_DOMAIN_CHECK = array('email' => 1, 'emails' => 1, 'emailexist' => 1, 'emailuniq' => 1, 'emailexistorempty' => 1, 'hostdomain' => 1, 'hostdomainchat' => 1, 'emailorempty' => 1)
static $FUNC_SKIP_MACROS_CHECK = array()
static $LOCATION_INDEXES = array ('lat', 'lng', 'country', 'state', 'city', 'zip', 'street', 'street_number')
static $LOCATION_INDEXES_MANDATORY = array ('lat', 'lng')
Protected Member Functions inherited from BxBaseFormAccount
 genCustomInputAgreement ($aInput)
 _setCustomError ($s)
 _isAdmin ()
 _getGhostTmplVars ($sField)
Protected Member Functions inherited from BxBaseFormView
 _isInputVisibleByPrivacy ($aInput)
 _genViewRowWrapped (&$aInput, $aParams=[])
 genCustomRowBirthday (&$aInput)
 genCustomRowCf (&$aInput)
 genCustomViewRowValueBirthday (&$aInput)
 _genWrapperInputAttrs (&$aInput)
 _genInputStandardAttrs (&$aInput)
 _genInputButtonAttrs (&$aInput)
 _genInputTextareaAttrs (&$aInput)
 genGhostTemplate (&$aInput)
 genCustomInputUsernamesSuggestions ($aInput)
 _genCustomInputUsernamesSuggestionsAttrs (&$aInput, $bDisabled=false)
 _genCustomInputUsernamesSuggestionsTextAttrs (&$aInput, $bDisabled=false)
 genCustomViewRowValueLabels ($aInput)
 genCustomInputLabels (&$aInput)
 _genInputSelectAttrs (&$aInput, $isMultiple)
 _genInputSelectOptionAttrs (&$aOption)
 _parseInputSelect ($sTmplName, $aTmplVars)
 getLocationVal ($aInput, $sIndex)
 _processCssJs ()
 _addJs ($mixed, $sJsCondition)
 _addCss ($mixed)
Protected Member Functions inherited from BxDolForm
 _genMethodName ($s)
 _replaceMarkers ($a)
 _getPrivacyIcon ($mixedPrivacy)
 _getPrivacyGroup ($sPrivacyObject, $iInputId, $iAuthorId=false)
Protected Attributes inherited from BxBaseFormAccount
 $_bSetPendingApproval = false
 $_sGhostTemplate = 'account_form_ghost_template.html'
Protected Attributes inherited from BxBaseFormView
 $bEnableErrorIcon = true
 $sCode
 $_sCodeAdd = ''
 $_isSectionOpened = false
 $_sDivider = '<span class="bx-def-margin-left"></span>'
 $_sDividerAlt = '<div class="bx-form-input-dv-nl"></div>'
 $_bDynamicMode = false
 $_bAjaxMode = false
 $_bAbsoluteActionUrl = false
 $_bViewMode = false
 $_bShowEmptySections = false
 $_sSectionClose = 'getCloseSection'
 $_sSectionOpen = 'getOpenSection'
 $_aJs = array()
 $_aCss = array()
 $_sJsClassName
 $_sJsObjectName
 $_aHtmlIds
Protected Attributes inherited from BxDolForm
 $_bIsApi
 $_aMarkers = array ()
 $oTemplate
 $_isValid = true
 $_bForceSetToPending = false
 $_sChecker
 $_sCheckerHelper
 $_aSpecificValues
 $_aFieldsCheckForSpam = array()
 $_aFieldsExcludeFromCheckForSpam = array()
 $_iAuthorId
 $_sAuthorKey
 $_sPrivacyObjectView
 $_sPrivacyGroupDefault
Static Protected Attributes inherited from BxBaseFormView
static $_isToggleJsAdded = false
static $_isCssJsAdded = false
static $_isCssJsUiAdded = false
static $_isCssJsUiSortableAdded = false
static $_isCssJsMinicolorsAdded = false
static $_isCssJsLabelsAdded = false
static $_isCssJsTimepickerAdded = false
static $_isCssJsAddedViewMode = false

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

BxTemplFormAccount::__construct ( $aInfo,
$oTemplate = false )

Constructor

Parameters
array$aInfoForm contents

$aInfo['params'] = array( 'remove_form' => true|false, );

Returns
BxBaseFormView

Note. For now Account Picture is available in edit form only. To make it available on create form Uploader should correctly support uploading by visitor.

Reimplemented from BxBaseFormAccount.

Reimplemented in BxAccntFormAccount.


The documentation for this class was generated from the following file:
  • template/scripts_templ/BxTemplFormAccount.php