Пример #1
0
 /**
  * Internal function to retrieve the image object,
  * if it does not exist, an instance will be created
  *
  * @return \TYPO3\CMS\Core\Imaging\GraphicalFunctions
  */
 protected function getImageObject()
 {
     if ($this->imageObject === NULL) {
         /** @var $this->imageObject \TYPO3\CMS\Core\Imaging\GraphicalFunctions */
         $this->imageObject = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Imaging\\GraphicalFunctions');
         $this->imageObject->init();
         $this->imageObject->mayScaleUp = 0;
         $this->imageObject->tempPath = PATH_site . $this->imageObject->tempPath;
     }
     return $this->imageObject;
 }