Returns file contents.
@return bool|string contents string, or false in case of an error.
170372
function fileFetchContents( $filePath )
    {
        $filePath = self::cleanPath( $filePath );
        eZDebugSetting::writeDebug( 'kernel-clustering', "dfs::fileFetchContents( '$filePath' )" );

        $contents = self::$dbbackend->_fetchContents( $filePath );
        return $contents;
    }
466009
public function contents()
    {
        $files = array();

        // Phar files must be reloaded to have updated contents.
        $this->phar = new Phar($this->path);

        foreach ($this->phar as $file) {
            $name = basename($file);
            $files[$name] = $this->phar[$name];
        }

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

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

		return explode(
			$this->getConfig('line_separator'),
			$content
		);
	}
661422
public function getFileContent()
    {
        $filepath = $this->getFilePath();

        if (is_file($filepath)) {
            $wordsArray = include $filepath;
            asort($wordsArray);

            return $wordsArray;
        }

        return false;
    }
79495
public function getStubContent()
    {
        $content  = '';
        $filename = $this->getStub();
        if ($filename) {
            $content = file_get_contents($this->getPHPCI()->buildPath . DIRECTORY_SEPARATOR . $this->getStub());
        }
        return $content;
    }
38734
public function getContents()
    {
        $contents = file_get_contents($this->getPath());

        return str_replace(
            array_keys($this->replaces), array_values($this->replaces), $contents
        );
    }
1026679
public function getFileContents()
    {
        $result = null;
        $fsl = $this->getFile()->getFileStorageLocationObject();
        if ($fsl !== null) {
            $app = Application::getFacadeApplication();
            $cf = $app->make('helper/concrete/file');
            try {
                $result = $fsl->getFileSystemObject()->read($cf->prefix($this->fvPrefix, $this->fvFilename));
                if ($result === false) {
                    $result = null;
                }
            } catch (FileNotFoundException $x) {
            }
        }

        return $result;
    }
461900
public function getBytes()
    {
        if ($this->isDirty && $this->bytes) {
            return $this->bytes;
        }
        if ($this->isDirty && $this->filename) {
            return file_get_contents($this->filename);
        }
        if ($this->riakGridFSFile instanceof \RiakGridFSFile) {
            return $this->riakGridFSFile->getBytes();
        }
        return null;
    }
640331
public function getContents()
	{
		$level = error_reporting(0);
		$content = file_get_contents($this->getPathname());
		error_reporting($level);

		if (false === $content)
		{
			$error = error_get_last();
			throw new RuntimeException($error['message']);
		}

		return $content;
	}
1067916
public function contents()
    {
        $files = array();

        for ($i=0; $i < $this->zip->numFiles; $i++) {
            $details = $this->zip->statIndex($i);
            $files[$details['name']] = $details;
        }

        return $files;
    }
632752
public function GetConfigFileContents()
	{
		if (!$this->configFileContents)
		{
			// get rid of windows-style carriage returns
			$this->configFileContents = str_replace("\r\n", "\n", file_get_contents($this->configFilePath) );
		}
		
		return $this->configFileContents;
	}
326915
public function getContent()
    {
        $this->load();
        $content = [];
        foreach ($this->users as $user) {
            $content[] = $user->getFileLine().PHP_EOL;
        }
        return implode('', $content);
    }
1261920
public function getContent()
    {
        if ($this->content === null) {
            fseek($this->stream, 0);
            while (($buf = $this->read()) !== false) {
                $this->content .= $buf;
            }
        }

        return $this->content;
    }
1234766
public function getCacheContents()
    {
        $cacheFile = $this->getCacheFile();

        if ( ! file_exists($cacheFile)) {
            return false;
        }

        return json_decode($this->sharedGet($cacheFile), true) ?? [];
    }
497618
public function getContents()
    {
        if ($this->resource === null) {
            return '';
        }

        $result = substr($this->resource, $this->pointer);

        if ($result === false) {
            return '';
        }

        return $result;
    }
935277
public function get_contents() {
        global $PAGE;
        if (!empty($this->properties->contents)) {
            if (!isset($this->properties->contentsformat)) {
                $this->properties->contentsformat = FORMAT_HTML;
            }
            $context = context_module::instance($PAGE->cm->id);
            $contents = file_rewrite_pluginfile_urls($this->properties->contents, 'pluginfile.php', $context->id, 'mod_lesson',
                                                     'page_contents', $this->properties->id);  // Must do this BEFORE format_text()!
            return format_text($contents, $this->properties->contentsformat,
                               array('context' => $context, 'noclean' => true,
                                     'overflowdiv' => true));  // Page edit is marked with XSS, we want all content here.
        } else {
            return '';
        }
    }
897897
public function getContents()
    {
        if(!$this->isReady())
            return;

        ob_start();

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

        require $this->path;

        return ob_get_clean();
    }