Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс BasePreset
+ Граф наследования:BasePreset:

Открытые члены

 __construct ()
 
 enableRestrictedGroupsMode ($state)
 
 isRestrictedGroupsModeEnabled ()
 
 hasErrors ()
 
 getErrors ()
 
 getStepNumber ()
 
 getView ()
 
 executeAjaxAction ($actionName)
 
 processAjaxActionGetProductDetails (array $params=array())
 
 getDiscount ()
 
 setDiscount ($discount)
 
 getStepTitle ()
 
 setStepTitle ($stepTitle)
 
 getStepDescription ()
 
 setStepDescription ($stepDescription)
 
 getSort ()
 
 getTitle ()
 
 isAvailable ()
 
 getPossible ()
 
 getAvailableState ()
 
 getAvailableHelpLink ()
 
 getDescription ()
 
 getExtendedDescription ()
 
 getFirstStepName ()
 
 getCategory ()
 
 getNextStep ()
 
 hasPrevStep ()
 
 isLastStep ()
 
 setNextStep ($nextStep)
 
 beginForm (State $state)
 
 endForm (State $state)
 
 generateDiscount (State $state)
 
 generateState (array $discountFields)
 
 processShowFinalStep (State $state)
 

Открытые статические члены

static className ()
 
static classShortName (BasePreset $classObject)
 

Открытые атрибуты

const FINAL_STEP = 'FINALSTEP'
 
const STEP_NAME_VAR = '__next_step'
 
const RUN_PREV_STEP_NAME_VAR = '__run_prev_step'
 
const MODE_SHOW = 2
 
const MODE_SAVE = 3
 
const ACTION_TYPE_DISCOUNT = 'Discount'
 
const ACTION_TYPE_EXTRA = 'Extra'
 
const AVAILABLE_STATE_ALLOW = 0x01
 
const AVAILABLE_STATE_DISALLOW = 0x02
 
const AVAILABLE_STATE_TARIFF = 0x04
 

Защищенные члены

 init ()
 
 getState ()
 
 isRunningPrevStep ()
 
 isDiscountEditing ()
 
 filterUserGroups (array $discountGroups)
 
 normalizeDiscountFields (array $discountFields)
 
 updateDiscount ($id, array $discountFields)
 
 addDiscount (array $discountFields)
 
 getUserGroupsByDiscount ($discountId)
 
 getSiteList ()
 
 processShowInputNameInternal (State $state)
 
 processSaveInputNameInternal (State $state, $nextStep)
 
 processShowCommonSettingsInternal (State $state)
 
 processSaveCommonSettingsInternal (State $state, $nextStep=self::FINAL_STEP)
 
 getLabelDiscountValue ()
 
 renderDiscountValue (State $state, $currency)
 
 getTypeOfDiscount ()
 
 getAllowableUserGroups ()
 

Защищенные данные

 $errorCollection
 
 $request
 
 $nextStep
 
 $stepTitle
 
 $stepDescription
 
 $bitrix24Included
 

Подробное описание

См. определение в файле basepreset.php строка 22

Конструктор(ы)

◆ __construct()

__construct ( )

См. определение в файле basepreset.php строка 78

Методы

◆ addDiscount()

addDiscount ( array $discountFields)
protected

См. определение в файле basepreset.php строка 647

◆ beginForm()

beginForm ( State $state)

См. определение в файле basepreset.php строка 500

◆ className()

static className ( )
static
Возвращает
string the fully qualified name of this class.

См. определение в файле basepreset.php строка 64

◆ classShortName()

static classShortName ( BasePreset $classObject)
static
Аргументы
BasePreset$classObject
Возвращает
string the short qualified name of this class.

См. определение в файле basepreset.php строка 73

◆ enableRestrictedGroupsMode()

enableRestrictedGroupsMode ( $state)

См. определение в файле basepreset.php строка 87

◆ endForm()

endForm ( State $state)

См. определение в файле basepreset.php строка 512

◆ executeAjaxAction()

executeAjaxAction ( $actionName)

См. определение в файле basepreset.php строка 145

◆ filterUserGroups()

filterUserGroups ( array $discountGroups)
protected

См. определение в файле basepreset.php строка 517

◆ generateDiscount()

generateDiscount ( State $state)
Аргументы
State$state
Возвращает
array Discount fields.

См. определение в файле basepreset.php строка 541

◆ generateState()

generateState ( array $discountFields)
Аргументы
array$discountFields
Возвращает
State $state

См. определение в файле basepreset.php строка 567

◆ getAllowableUserGroups()

getAllowableUserGroups ( )
protected
Возвращает
array

См. определение в файле basepreset.php строка 922

◆ getAvailableHelpLink()

getAvailableHelpLink ( )

См. определение в файле basepreset.php строка 437

◆ getAvailableState()

getAvailableState ( )

См. определение в файле basepreset.php строка 432

◆ getCategory()

getCategory ( )
Возвращает
int

См. определение в файле basepreset.php строка 464

◆ getDescription()

getDescription ( )
abstract
Возвращает
string

◆ getDiscount()

getDiscount ( )
Возвращает
array

См. определение в файле basepreset.php строка 345

◆ getErrors()

getErrors ( )
Возвращает
Error[]

См. определение в файле basepreset.php строка 108

◆ getExtendedDescription()

getExtendedDescription ( )

См. определение в файле basepreset.php строка 447

◆ getFirstStepName()

getFirstStepName ( )
abstract
Возвращает
string

◆ getLabelDiscountValue()

getLabelDiscountValue ( )
protected

См. определение в файле basepreset.php строка 893

◆ getNextStep()

getNextStep ( )
Возвращает
string

См. определение в файле basepreset.php строка 472

◆ getPossible()

getPossible ( )

См. определение в файле basepreset.php строка 427

◆ getSiteList()

getSiteList ( )
protected

См. определение в файле basepreset.php строка 689

◆ getSort()

getSort ( )

Returns sort to sorting presets in category row.

Возвращает
int

См. определение в файле basepreset.php строка 405

◆ getState()

getState ( )
protected
Возвращает
State

См. определение в файле basepreset.php строка 126

◆ getStepDescription()

getStepDescription ( )
Возвращает
string

См. определение в файле basepreset.php строка 385

◆ getStepNumber()

getStepNumber ( )

См. определение в файле basepreset.php строка 113

◆ getStepTitle()

getStepTitle ( )
Возвращает
string

См. определение в файле basepreset.php строка 369

◆ getTitle()

getTitle ( )
abstract
Возвращает
string

◆ getTypeOfDiscount()

getTypeOfDiscount ( )
protected

См. определение в файле basepreset.php строка 914

◆ getUserGroupsByDiscount()

getUserGroupsByDiscount ( $discountId)
protected

См. определение в файле basepreset.php строка 674

◆ getView()

getView ( )

См. определение в файле basepreset.php строка 131

◆ hasErrors()

hasErrors ( )

См. определение в файле basepreset.php строка 100

◆ hasPrevStep()

hasPrevStep ( )

См. определение в файле basepreset.php строка 477

◆ init()

init ( )
protected

Переопределяется в SelectProductPreset.

См. определение в файле basepreset.php строка 97

◆ isAvailable()

isAvailable ( )
См. также
BasePreset::getAvailableState

Tells if preset is available or not. It's possible that preset can't work in some license.

Возвращает
bool

См. определение в файле basepreset.php строка 422

◆ isDiscountEditing()

isDiscountEditing ( )
protected

См. определение в файле basepreset.php строка 350

◆ isLastStep()

isLastStep ( )

См. определение в файле basepreset.php строка 484

◆ isRestrictedGroupsModeEnabled()

isRestrictedGroupsModeEnabled ( )

См. определение в файле basepreset.php строка 92

◆ isRunningPrevStep()

isRunningPrevStep ( )
protected

См. определение в файле basepreset.php строка 140

◆ normalizeDiscountFields()

normalizeDiscountFields ( array $discountFields)
finalprotected

См. определение в файле basepreset.php строка 583

◆ processAjaxActionGetProductDetails()

processAjaxActionGetProductDetails ( array $params = array())

См. определение в файле basepreset.php строка 164

◆ processSaveCommonSettingsInternal()

processSaveCommonSettingsInternal ( State $state,
$nextStep = self::FINAL_STEP )
protected

См. определение в файле basepreset.php строка 858

◆ processSaveInputNameInternal()

processSaveInputNameInternal ( State $state,
$nextStep )
protected

См. определение в файле basepreset.php строка 751

◆ processShowCommonSettingsInternal()

processShowCommonSettingsInternal ( State $state)
protected

См. определение в файле basepreset.php строка 771

◆ processShowFinalStep()

processShowFinalStep ( State $state)

См. определение в файле basepreset.php строка 667

◆ processShowInputNameInternal()

processShowInputNameInternal ( State $state)
protected

См. определение в файле basepreset.php строка 729

◆ renderDiscountValue()

renderDiscountValue ( State $state,
$currency )
protected

См. определение в файле basepreset.php строка 898

◆ setDiscount()

setDiscount ( $discount)
Аргументы
array$discount
Возвращает
$this

См. определение в файле basepreset.php строка 359

◆ setNextStep()

setNextStep ( $nextStep)
Аргументы
string$nextStep
Возвращает
$this

См. определение в файле basepreset.php строка 493

◆ setStepDescription()

setStepDescription ( $stepDescription)
Аргументы
string$stepDescription
Возвращает
$this

См. определение в файле basepreset.php строка 394

◆ setStepTitle()

setStepTitle ( $stepTitle)
Аргументы
string$stepTitle

См. определение в файле basepreset.php строка 377

◆ updateDiscount()

updateDiscount ( $id,
array $discountFields )
protected

См. определение в файле basepreset.php строка 629

Данные класса

◆ $bitrix24Included

$bitrix24Included
protected

См. определение в файле basepreset.php строка 59

◆ $errorCollection

$errorCollection
protected

См. определение в файле basepreset.php строка 40

◆ $nextStep

$nextStep
protected

См. определение в файле basepreset.php строка 44

◆ $request

$request
protected

См. определение в файле basepreset.php строка 42

◆ $stepDescription

$stepDescription
protected

См. определение в файле basepreset.php строка 48

◆ $stepTitle

$stepTitle
protected

См. определение в файле basepreset.php строка 46

◆ ACTION_TYPE_DISCOUNT

const ACTION_TYPE_DISCOUNT = 'Discount'

См. определение в файле basepreset.php строка 32

◆ ACTION_TYPE_EXTRA

const ACTION_TYPE_EXTRA = 'Extra'

См. определение в файле basepreset.php строка 33

◆ AVAILABLE_STATE_ALLOW

const AVAILABLE_STATE_ALLOW = 0x01

См. определение в файле basepreset.php строка 35

◆ AVAILABLE_STATE_DISALLOW

const AVAILABLE_STATE_DISALLOW = 0x02

См. определение в файле basepreset.php строка 36

◆ AVAILABLE_STATE_TARIFF

const AVAILABLE_STATE_TARIFF = 0x04

См. определение в файле basepreset.php строка 37

◆ FINAL_STEP

const FINAL_STEP = 'FINALSTEP'

См. определение в файле basepreset.php строка 24

◆ MODE_SAVE

const MODE_SAVE = 3

См. определение в файле basepreset.php строка 30

◆ MODE_SHOW

const MODE_SHOW = 2

См. определение в файле basepreset.php строка 29

◆ RUN_PREV_STEP_NAME_VAR

const RUN_PREV_STEP_NAME_VAR = '__run_prev_step'

См. определение в файле basepreset.php строка 27

◆ STEP_NAME_VAR

const STEP_NAME_VAR = '__next_step'

См. определение в файле basepreset.php строка 25