Return the contents of the whole template file

@return string

@throws FileExistException
320836
public function getContents()
    {
        try {
            $fileObj = new SplFileObject($this->getName(true) , 'r');
        } catch ( RuntimeException $ex ) {
            throw new FileExistException('The provided file is not readable' , $ex);
        }

        return file_get_contents($fileObj->getPathname());
    }
1132437
protected function getTemplate()
    {
        $templateFile = '';
        if (isset($this->ffData['templateFile']) && !empty($this->ffData['templateFile'])) {
            $templateFile = $this->ffData['templateFile'];
        } elseif (isset($this->conf['defaultTemplateFileName'])) {
            $templateFile = $this->conf['defaultTemplateFileName'];
        }

        if ($templateFile === 'default') {
            $templateFile = $this->conf['defaultTemplateFileName'];
        }

        $templateCode = file_get_contents(GeneralUtility::getFileAbsFileName($this->conf['templatePath'] . $templateFile));
        return $this->templateService->getSubpart($templateCode, '###TEMPLATE_ADDRESS###');
    }
989887
public function getContent()
	{
		if(!empty($this->content))
			return $this->content;
		elseif ($this->fs->exists($this->file)) {
			$this->content = $this->fs->read($this->file);
			return $this->content;
		} else
			return false;
	}
789844
protected function _template() {
		$file = Libraries::locate('command.create.template', $this->template, [
			'filter' => false, 'type' => 'file', 'suffix' => '.txt.php'
		]);
		if (!$file || is_array($file)) {
			return false;
		}
		return file_get_contents($file);
	}
325139
protected function getContents()
    {
        // Cancel if the file doesn't exist
        if (!$this->getFilesystem()->has($this->getFilepath())) {
            return [];
        }

        // Get and parse file
        if ($this->contents === null) {
            $this->contents = $this->getFilesystem()->read($this->getFilepath());
            $this->contents = json_decode($this->contents, true);
        }

        return (array) $this->contents;
    }
869186
public function getContent()
	{
		$file = $this->getFileLocation();
		$filesystem = $this->getFilesystem();

		$content = $filesystem->read($file);

		return explode(
			$this->getConfig('line_separator'),
			$content
		);
	}
85668
public static function GetContents() {
      $File = CombinePaths(func_get_args());
      if (file_exists($File) && is_file($File))
         return self::_GetContents($File);
      else
         return FALSE;
   }
897897
public function getContents()
    {
        if(!$this->isReady())
            return;

        ob_start();

        extract($this->callbackResolve($this->data));

        require $this->path;

        return ob_get_clean();
    }
703309
public function getMyToc()
    {
        $parent = $this->getParent();

        if ($parent) {
            foreach ($parent['tocs'] as $toc) {
                if (in_array($this->currentFileName, $toc)) {
                    $before = array();
                    $after = $toc;

                    while ($after) {
                        $file = array_shift($after);
                        if ($file == $this->currentFileName) {
                            return array($before, $after);
                        }
                        $before[] = $file;
                    }
                }
            }
        }

        return null;
    }
338754
private function readTemplateContent()
    {
        // Get page content if static file used
        if ($this->router_instance->getPageData()['html_file'] && file_exists(DIR_BASE . $this->router_instance->getPageData()['html_file'])) {
            if (Settings::isFrontendLogEnabled()) {
                FrontendLogger::getInstance()->log('Rendering simple HTML file');
            }

            ob_start();
            // Read file as is
            require_once DIR_BASE . $this->router_instance->getPageData()['html_file'];

            $this->html = ob_get_clean();
            // Prevent future component parse
            $this->use_html_file_without_parse = true;

            // Usual template read for parsing
        } elseif (is_file($this->router_instance->getPageData()['template_file'])) {

            // Get page content with components
            $this->html = file_get_contents($this->router_instance->getPageData()['template_file']);

            // Nothing found
        } else {
            $this->html = 'No template "' . $this->router_instance->getPageData()['template_file'] . '" for this page.';
        }
    }
1114027
public function getTemplateContent(){

        $standardRpTemplateFolder = dirname(__FILE__).'/../data/qtiv2p1/rptemplates/';
        switch($this->uri){
            case self::MATCH_CORRECT:
                $returnValue = file_get_contents($standardRpTemplateFolder.'match_correct.xml');
                break;
            case self::MAP_RESPONSE:
                $returnValue = file_get_contents($standardRpTemplateFolder.'map_response.xml');
                break;
            case self::MAP_RESPONSE_POINT:
                $returnValue = file_get_contents($standardRpTemplateFolder.'map_response_point.xml');
                break;
            case self::NONE:
                $returnValue = '';
                break;
            default:
                throw new QtiModelException('unknown rp template');
        }
        return $returnValue;
    }
234504
protected function fileContents() {
    // File contents are built up.
    $file_contents = array_merge(
      $this->file_header(),
      $this->code_header(),
      $this->code_body(),
      array(
        $this->code_footer(),
      )
    );

    return $file_contents;
  }
222552
public function getContent()
    {
        if ( $this->_render_completed )
        {
            return $this->_content;
        }

        foreach ( $this->_view_levels as $view_level )
        {
            if ( $view_level["is_disabled"] )
            {
                continue;
            }

            $this->_view_levels[$view_level["name"]]["is_disabled"] = true;

            if ( $view_level["cache_enabled"] != false )
            {
                $this->getCacheContent( $view_level );
                return;
            }

            include( $this->_views_dir . $view_level["file_name"] . ".phtml" );
            return;
        }
    }
152847
public function read() {
		if (!$this->exists()) {
			throw new FileException(sprintf('File does not exist: %s', $this->getFilename()));
		}

		if (!$this->isReadable()) {
			throw new FileException(sprintf('You don\'t have permissions to access %s file', $this->getFilename()));
		}

		return file_get_contents($this->pathname);
	}
714844
public function getHeaderContent()
    {
        if (!$this->headerFileHandle) {
            return null;
        }

        fseek($this->headerFileHandle, 0);

        $lines = array();
        while ($line = trim(fgets($this->headerFileHandle), "\n\r")) {
            $lines[] = $line;
        }

        return $lines;
    }
1191342
public function toString()
    {
        if (!$this->getCommand()->getExecuted() && !$this->execute()) {
            return false;
        }
        return file_get_contents($this->getTmpFile()->getFileName());
    }
629624
public function getFileContent(File $file)
	{
		$filePath = $this->getFilesystemPath($file);
		$fileContent = file_get_contents($filePath);

		return $fileContent;
	}