91 if (File::isFileExists($_SERVER[
"DOCUMENT_ROOT"].$this->path.
"/".$this->fileName))
102 && imagepng($image, $tmpFile, 0)
106 $fileId = \CFile::SaveFile($fileData,
'calendar',
false,
false, self::ICAL_SUB_DIR);
107 $fileArray = \CFile::GetFileArray($fileId);
108 if (is_array($fileArray))
110 if ($fileArray[
'SRC'] !== $this->filePath)
112 $this->filePath = $fileArray[
'SRC'];
156 if (!\
Bitrix\Main\
IO\File::isFileExists($this->templatePath))
161 $image = @imagecreatefrompng($this->templatePath);
163 $color = imagecolorallocate($image, 255, 255, 255);
164 imagettftext($image, 30, 0, 55, 57, $color, $this->fontPath, $month);