Renvoie le contenu restant.

@throws \RuntimeException Une erreur c'est produit pendant la lecture du flux.
@return string
422060
public function getContents()
    {
        $this->valideAttach()->valideRead();
        if (($stream = stream_get_contents($this->stream)) === false) {
            throw new \RuntimeException('An error occurred while reading the stream.');
        }

        return $stream;
    }
326915
public function getContent()
    {
        $this->load();
        $content = [];
        foreach ($this->users as $user) {
            $content[] = $user->getFileLine().PHP_EOL;
        }
        return implode('', $content);
    }
490642
public function escribirCerrar()
    {
        if (!$this->iniciado) {
            throw new \RuntimeException('La sesión no fue iniciada previamente.');
        }

        if (!$this->adaptador->escribir($this->id, $this->datos)) {
            throw new \RuntimeException('Hubo un error escribiendo la sesión.');
        }

        $this->adaptador->cerrar();
        $this->iniciado = false;

        return true;
    }
1314677
public function getContent()
    {
        $content = array();
        foreach ($this as $resource) {
            $content[] = $resource->getContent();
        }

        return implode("\n", $content);
    }
495754
public function toString()
    {
        $url = $this->scheme.':';
        if (trim($this->host) != '') {
            $url .= '//';
            if (trim($this->user) != '') {
                $url .= $this->user.((trim($this->pass) != '')?':'.$this->pass:'').'@';
            }
            $url .= $this->host;

            if (trim($this->port) != '') {
                $url .= ':'.$this->port;
            }
        }

        $url .= (trim($this->path) != '')?$this->path:'';
        $url .= (trim($this->query) != '')?'?'.$this->query:'';
        $url .= (trim($this->fragment) != '')?'#'.$this->fragment:'';

        if (!self::isValid($url)) {
            throw new RuntimeException('Built URL is not a valid one: '.$url);
        }

        return $url;
    }
1372322
public function getContents():string {
		if(!$this->isReadable()) {
			throw new StreamException("Stream is not readable");
		}

		$position = $this->tell();
		$this->rewind();

		$string = stream_get_contents($this->stream);
		$this->seek($position);

		return $string;
	}
594379
public function getContents()
    {
        if (!$this->isReadable()) {
            return '';
        }
        rewind($this->resource);

        $result = stream_get_contents($this->resource);
        if (!$result) {
            return '';
        }
        return $result;
    }
736772
public function getContent() {

		if(false !== $this -> file -> getExists()) {

			$this -> refresh();

			if(false === $this -> file -> getReadable()) {
				trigger_error(sprintf('File "%s" is not readable', $this -> file -> getBasepath()), E_USER_ERROR);
			}
			
			return file_get_contents($this -> file -> getBasepath());
		}
	}
869373
public function getContents(){
        if(null === $this->resource){
            throw new Exception\StreamUnavailableException(
                static::EXCEPTION_MSG_UNAVAILABLE
            );
        }

        if(!$this->isReadable()){
            throw new Exception\StreamUnreadableException(
                static::EXCEPTION_MSG_UNREADABLE
            );
        }

        if(false === ($contents = stream_get_contents($this->resource))){
            throw new \RuntimeException("Failed to read stream.");
        }

        return $contents;
    }
904753
public function getContent()
    {
        $content = ($this->_size > 0 ? $this->getTypeAsRtfCode() : '')
            . '\brdrw' . $this->_size
            . '\brsp' . $this->_space;

        if ($this->_color && $this->_colorTable) {
            $colorIndex = $this->_colorTable->getColorIndex($this->_color);
            if ($colorIndex !== false) {
                $content .= '\brdrcf' . $colorIndex;
            }
        }

        return $content . ' ';
    }
1083517
private function getContent()
    {
        if (null === $this->manifestData) {
            if (!file_exists($this->manifestPath)) {
                throw new \RuntimeException(sprintf('Asset manifest file "%s" does not exist.', $this->manifestPath));
            }

            $this->manifestData = json_decode(file_get_contents($this->manifestPath), true);
            if (0 < json_last_error()) {
                throw new \RuntimeException(sprintf('Error parsing JSON from asset manifest file "%s" - %s', $this->manifestPath, json_last_error_msg()));
            }
        }

        return $this->manifestData;
    }
637549
public function tell()
    {
        $this->valideAttach();
        if (($stream = ftell($this->stream)) === false) {
            throw new \RuntimeException('An error has occurred.');
        }

        return $stream;
    }
373514
private function getContent()
    {
        if (null === $this->contentCache) {
            $item = $this->getCachedContent();

            if (null === $this->contentCache) {
                $this->contentCache = $this->saveContentInCache($item, $this->readFile());
            }
        }

        return $this->contentCache;
    }
526877
final public function getContent(): string
    {
        if (null === $this->content) {
            $this->content = $this->doGetContent($this->getContentPartNumber());
        }

        return $this->content;
    }
1007537
public function getAllContents()
    {
        $sLog    = '';
        $sFormat = "----------------------------------------------------------------------\n" .
                   "%s\n" .
                   "----------------------------------------------------------------------\n\n" .
                   "%s\n\n";

        $sLogDirectoryPath = $this->getErrorLogPath();
        $hDir              = @opendir( $sLogDirectoryPath );

        if ( !empty( $hDir ) ) {
            while ( false !== ( $sFileName = readdir( $hDir ) ) ) {
                $sLog .= $this->_getFormattedContents( $sLogDirectoryPath, $sFileName, $sFormat );
            }
        }

        return $sLog;
    }
316662
public function getAbstract()
    {
        return strlen($this->content) > 400 ? StringUtils::resumeHtml($this->content, 400) : $this->content;
    }
1057615
public function render()
    {
        $body = $this->getBody();
        if (!$body) {
            throw new Exception\RuntimeException(
                'Body has not been set'
            );
        }

        $element = $this->getElement();
        $header  = ($this->hasCloseButton() ? $this->renderCloseButton() : '')
            . $this->getHeader();

        if ($header) {
            $element->spawnChild('div')
                ->setContent($header)
                ->addClass('modal-header');
        }

        $element->spawnChild('div')
            ->setContent($body)
            ->addClass('modal-body');

        $footer = $this->getFooter();
        if ($footer) {
            $element->spawnChild('div')
                ->setContent($footer)
                ->addClass('modal-footer');
        }

        $element
            ->addClass('modal')
            ->addAttributes($this->getDataAttributes());

        return $element->render();
    }