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

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

 getSettingsHTML ($userField=false, $htmlControl=[], $varsFromForm=false)
 
 getEditFormHTML ($userField, $htmlControl)
 

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

static getUserTypeDescription ()
 
static prepareSettings ($userField=[])
 
static getDBColumnType ()
 
static checkFields ($userField, $value)
 
static onBeforeSaveAll ($userField, $values, $userId=false)
 
static onDelete ($userField, $values, $userId=false)
 
static saveResource ($id, $resourceType, $resourceId, $eventFields=[], $params=[])
 
static releaseResource ($entry)
 
static prepareValue ($type, $id, $from, $duration, $serviceName='')
 
static parseValue ($value)
 
static getPublicEdit ($userField, $additionalParams=[])
 
static getPublicView ($userField, $additionalParams=[])
 
static getPublicText ($userField)
 
static getDefaultResourcesList ()
 
static getDefaultServiceList ()
 
static getBitrx24Limitation ()
 
static getAvailableEntriesList ()
 
static onBeforeUserTypeAdd (&$userTypeFields)
 
static getResourceEntriesList ($idList=[])
 
static getUserFieldByFieldName ($fieldName='', $selectedUsers=[])
 
static getFillFormData ($data=[], $params=[])
 
static getFormDateTimeSlots ($fieldName='', $options=[])
 
static prepareFormDateValues ($dateFrom=null, $fieldName='', $options=[])
 
- Открытые статические члены унаследованные от TypeBase
static getHelper ()
 
static setHelper (TypeHelper $helper)
 
static getPublicText ($userField)
 

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

const USER_TYPE_ID = 'resourcebooking'
 
const EVENT_LABEL = '#resourcebooking#'
 
const RESOURCE_CALENDAR_TYPE = 'resource'
 
const BITRIX24_RESTRICTION = 100
 
const BITRIX24_RESTRICTION_CODE = 'uf_resourcebooking'
 
const CRM_LEAD_ENTITY_ID = 'CRM_LEAD'
 
const CRM_SUSPENDED_LEAD_ENTITY_ID = 'CRM_LEAD_SPD'
 
const CRM_DEAL_ENTITY_ID = 'CRM_DEAL'
 
const CRM_SUSPENDED_DEAL_ENTITY_ID = 'CRM_DEAL_SPD'
 
- Открытые атрибуты унаследованные от TypeBase
const USER_TYPE_ID = '_generic'
 

Защищенные статические члены

static fetchFieldValue ($value)
 
- Защищенные статические члены унаследованные от TypeBase
static initDisplay (array $additional=array())
 
static buildTagAttributes (array $attributes)
 
static getFieldName ($arUserField, $arAdditionalParameters=array())
 
static normalizeFieldValue ($value)
 
static getFieldValue ($arUserField, $arAdditionalParameters=array())
 

Статические защищенные данные

static $restrictionCount = null
 

Дополнительные унаследованные члены

- Статические открытые данные унаследованные от TypeBase
static $helper = array()
 

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

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

Методы

◆ checkFields()

static checkFields (   $userField,
  $value 
)
static

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

◆ fetchFieldValue()

static fetchFieldValue (   $value)
staticprotected

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

◆ getAvailableEntriesList()

static getAvailableEntriesList ( )
static

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

◆ getBitrx24Limitation()

static getBitrx24Limitation ( )
static

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

◆ getDBColumnType()

static getDBColumnType ( )
static

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

◆ getDefaultResourcesList()

static getDefaultResourcesList ( )
static

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

◆ getDefaultServiceList()

static getDefaultServiceList ( )
static

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

◆ getEditFormHTML()

getEditFormHTML (   $userField,
  $htmlControl 
)

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

◆ getFillFormData()

static getFillFormData (   $data = [],
  $params = [] 
)
static

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

◆ getFormDateTimeSlots()

static getFormDateTimeSlots (   $fieldName = '',
  $options = [] 
)
static

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

◆ getPublicEdit()

static getPublicEdit (   $userField,
  $additionalParams = [] 
)
static

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

◆ getPublicText()

static getPublicText (   $userField)
static

Переопределяет метод предка TypeBase.

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

◆ getPublicView()

static getPublicView (   $userField,
  $additionalParams = [] 
)
static

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

◆ getResourceEntriesList()

static getResourceEntriesList (   $idList = [])
static

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

◆ getSettingsHTML()

getSettingsHTML (   $userField = false,
  $htmlControl = [],
  $varsFromForm = false 
)

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

◆ getUserFieldByFieldName()

static getUserFieldByFieldName (   $fieldName = '',
  $selectedUsers = [] 
)
static

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

◆ getUserTypeDescription()

static getUserTypeDescription ( )
static

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

◆ onBeforeSaveAll()

static onBeforeSaveAll (   $userField,
  $values,
  $userId = false 
)
static

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

◆ onBeforeUserTypeAdd()

static onBeforeUserTypeAdd ( $userTypeFields)
static

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

◆ onDelete()

static onDelete (   $userField,
  $values,
  $userId = false 
)
static

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

◆ parseValue()

static parseValue (   $value)
static

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

◆ prepareFormDateValues()

static prepareFormDateValues (   $dateFrom = null,
  $fieldName = '',
  $options = [] 
)
static

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

◆ prepareSettings()

static prepareSettings (   $userField = [])
static

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

◆ prepareValue()

static prepareValue (   $type,
  $id,
  $from,
  $duration,
  $serviceName = '' 
)
static

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

◆ releaseResource()

static releaseResource (   $entry)
static

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

◆ saveResource()

static saveResource (   $id,
  $resourceType,
  $resourceId,
  $eventFields = [],
  $params = [] 
)
static

Saves resource of given type.

Аргументы
integer$idid of current booking.
string$resourceTyperesource type.
integer$resourceIdresource id.
array$eventFieldscalendar event fields.
array$paramsadditional params.
Возвращает
integer, id of resource booking or null
Исключения

Bitrix\Main\SystemException

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

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

◆ $restrictionCount

$restrictionCount = null
staticprotected

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

◆ BITRIX24_RESTRICTION

const BITRIX24_RESTRICTION = 100

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

◆ BITRIX24_RESTRICTION_CODE

const BITRIX24_RESTRICTION_CODE = 'uf_resourcebooking'

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

◆ CRM_DEAL_ENTITY_ID

const CRM_DEAL_ENTITY_ID = 'CRM_DEAL'

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

◆ CRM_LEAD_ENTITY_ID

const CRM_LEAD_ENTITY_ID = 'CRM_LEAD'

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

◆ CRM_SUSPENDED_DEAL_ENTITY_ID

const CRM_SUSPENDED_DEAL_ENTITY_ID = 'CRM_DEAL_SPD'

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

◆ CRM_SUSPENDED_LEAD_ENTITY_ID

const CRM_SUSPENDED_LEAD_ENTITY_ID = 'CRM_LEAD_SPD'

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

◆ EVENT_LABEL

const EVENT_LABEL = '#resourcebooking#'

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

◆ RESOURCE_CALENDAR_TYPE

const RESOURCE_CALENDAR_TYPE = 'resource'

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

◆ USER_TYPE_ID

const USER_TYPE_ID = 'resourcebooking'

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