88 if (File::isFileExists(
$_SERVER[
"DOCUMENT_ROOT"].$this->
path.
"/".$this->fileName))
99 && imagepng($image, $tmpFile, 0)
103 $fileId = \CFile::SaveFile($fileData,
'calendar',
false,
false, self::ICAL_SUB_DIR);
104 $fileArray = \CFile::GetFileArray($fileId);
105 if (is_array($fileArray))
107 if ($fileArray[
'SRC'] !== $this->filePath)
109 $this->filePath = $fileArray[
'SRC'];
153 if (!\
Bitrix\
Main\
IO\File::isFileExists($this->templatePath))
158 $image = @imagecreatefrompng($this->templatePath);
159 $month = Helper::getShortMonthName($this->date);
160 $color = imagecolorallocate($image, 255, 255, 255);
161 imagettftext($image, 30, 0, 55, 57, $color, $this->fontPath, $month);