Your IP : 18.116.42.219


Current Path : /var/www/admin_ftp_12/data/www/httpdocs/bitrix/components/bitrix/main.field.datetime/
Upload File :
Current File : /var/www/admin_ftp_12/data/www/httpdocs/bitrix/components/bitrix/main.field.datetime/class.php

<?php

if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();

use Bitrix\Main\Component\BaseUfComponent;
use Bitrix\Main\Context;
use Bitrix\Main\UserField\Types\DateTimeType;

/**
 * Class DateTimeUfComponent
 */
class DateTimeUfComponent extends BaseUfComponent
{
	protected static function getUserTypeId(): string
	{
		return DateTimeType::USER_TYPE_ID;
	}

	/**
	 * @return array
	 */
	protected function getFieldValue(): array
	{
		return self::normalizeFieldValue(
			DateTimeType::getFieldValue(($this->userField ?: []), $this->additionalParameters)
		);
	}
}