Documentation

__construct

 public
\Bitrix\Main\Text\DateConverterResult::__construct(
 \Bitrix\Main\Type\DateTime $date,
 string $text,
  $type = self::TYPE_UNKNOWN,
 array $metrics = array(),
 array $metricModifier = array()
);

Constructor for class DateConverterResult

Parameters

ParameterDescriptionVersion
$dateObject of class DateTime.
$textText
$typeOption parameter - recognition type.
$metricsArray with phrases for recognition.
$metricModifierArray with phrase recognition modifiers.

Example



© «Bitrix24», 2001-2024
Up