File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/calendar/lib/ical/basic/textpropertytype.php
Back
<?php namespace Bitrix\Calendar\ICal\Basic; class TextPropertyType extends PropertyType { private $text; private $disableEscaping; public static function getInstance($names, string $text, $disableEscaping = false): TextPropertyType { return new self($names, $text, $disableEscaping); } public function __construct($names, string $text, $disableEscaping = false) { parent::__construct($names); $this->text = $text; $this->disableEscaping = $disableEscaping; } public function getValue(): string { if ($this->disableEscaping) { return $this->text; } $replacements = [ '\\' => '\\\\', '"' => '\\"', ',' => '\\,', ';' => '\\;', "\n" => '\\n', ]; return str_replace(array_keys($replacements), $replacements, $this->text); } public function getOriginalValue(): string { return $this->text; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings