protected function init($id, $file)
    {
        $this->setState(self::RUNNING);
        $this->setId($id);
        $this->setBuffer(array());
        $this->setOutput('');
        $this->setPreviousChar(false);
        $this->setPreviousSignificantChar(false);

        if (($data = @file_get_contents($file)) !== false) {
            $stream = new MemoryStream($data);
            $stream->open();
            $this->setStream($stream);
        } else {
            throw new RenderingException("The CSS file '${file}' could not be open.", RenderingException::RUNTIME);
        }
    }
protected function init($id, $file)
    {
        $this->setState(self::RUNNING);
        $this->setId($id);
        $this->setBuffer(array());
        $this->setOutput('');
        $this->setPreviousChar(false);
        $this->setPreviousSignificantChar(false);

        if (($data = @file_get_contents($file)) !== false) {
            $stream = new MemoryStream($data);
            $stream->open();
            $this->setStream($stream);
        } else {
            throw new RenderingException("The CSS file '${file}' could not be open.", RenderingException::RUNTIME);
        }
    }
protected function init ( $ id , $ file ) { $ this -> setState ( self :: RUNNING ) ; $ this -> setId ( $ id ) ; $ this -> setBuffer ( array ( ) ) ; $ this -> setOutput ( '' ) ; $ this -> setPreviousChar ( false ) ; $ this -> setPreviousSignificantChar ( false ) ; if ( ( $ data = @ file_get_contents ( $ file ) ) !== false ) { $ stream = new MemoryStream ( $ data ) ; $ stream -> open ( ) ; $ this -> setStream ( $ stream ) ; } else { throw new RenderingException ( "The CSS file '${file}' could not be open." , RenderingException :: RUNTIME ) ; } }
Initialize the object to be ready for a new rescoping.

@param string $id The identifier to be used for scoping.
@param string $file The path to the CSS file to be scoped.
@throws \qtism\runtime\rendering\RenderingException
Initialize the object to be ready for a new rescoping .