public function __construct($not = false) { $this->setType(EventNotificationPlugin::getConditionTypeCoreValue(EventNotificationConditionType::EVENT_NOTIFICATION_OBJECT_CHANGED)); parent::__construct($not); }
/** * Needed in order to migrate old kEventFieldCondition that serialized before kCondition defined as parent class */ public function __wakeup() { $this->setType(EventNotificationPlugin::getConditionTypeCoreValue(EventNotificationConditionType::EVENT_NOTIFICATION_FIELD)); }
public static function loadObject($baseClass, $enumValue, array $constructorArgs = null) { if ($baseClass == 'KalturaJobData' && $enumValue == self::getApiValue(EventNotificationBatchType::EVENT_NOTIFICATION_HANDLER) && isset($constructorArgs['coreJobSubType'])) { return KalturaPluginManager::loadObject('KalturaEventNotificationDispatchJobData', $constructorArgs['coreJobSubType']); } if ($baseClass == 'KalturaCondition') { if ($enumValue == EventNotificationPlugin::getConditionTypeCoreValue(EventNotificationConditionType::EVENT_NOTIFICATION_FIELD)) { return new KalturaEventFieldCondition(); } if ($enumValue == EventNotificationPlugin::getConditionTypeCoreValue(EventNotificationConditionType::EVENT_NOTIFICATION_OBJECT_CHANGED)) { return new KalturaEventObjectChangedCondition(); } } return null; }