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

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

 __construct (ReservationSettings $settings)
 
 getSettings ()
 
- Открытые члены унаследованные от Event
 __construct ($moduleId, $type, $parameters=array(), $filter=null)
 
 getModuleId ()
 
 getEventType ()
 
 setParameters ($parameters)
 
 getParameters ()
 
 setParameter ($key, $value)
 
 getParameter ($key)
 
 setFilter ($filter)
 
 getFilter ()
 
 getResults ()
 
 addResult (EventResult $result)
 
 getSender ()
 
 send ($sender=null)
 
 addException (\Exception $exception)
 
 getExceptions ()
 
 turnDebugOn ()
 
 isDebugOn ()
 
 addDebugInfo ($ar)
 
 getDebugInfo ()
 

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

const NAME = 'OnReservationSettingsBuild'
 

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

- Защищенные члены унаследованные от Event
 loadParameters ()
 
- Защищенные данные унаследованные от Event
 $moduleId
 
 $type
 
 $parameters = array()
 
 $parametersLoader = null
 
 $filter = null
 
 $sender = null
 
 $debugMode = false
 
 $debugInfo = array()
 
 $results = array()
 
 $exceptions = array()
 

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

Event for building reservation settings.

If you need to change the reservation settings, while you cannot edit the configuration (

См. также
\Bitrix\Main\Configuration\Option), you can use this event to change the settings.

For example (realization event handler):

public static function OnReservationSettingsBuild(\Bitrix\Sale\Reservation\Configuration\ReservationSettingsBuildEvent $event)
{
if (self::isEnabledCrmReservation())
{
$event->getSettings()->setReserveCondition(
\Bitrix\Sale\Reservation\Configuration\ReserveCondition::ON_CREATE
);
}
}

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

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

◆ __construct()

__construct ( ReservationSettings $settings)
Аргументы
ReservationSettings$settings

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

Методы

◆ getSettings()

getSettings ( )

Reservation settings.

Возвращает
ReservationSettings

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

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

◆ NAME

const NAME = 'OnReservationSettingsBuild'

Event name.

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