private function getStylesheetContent($path)
    {
        if ($this->isExternalStylesheet($path)) {
            $cssData = $this->getRequestHandler()->getContent($path);
        } else {
            if (file_exists($path)) {
                $cssData = file_get_contents($path);
            } else {
                return;
            }
        }

        $cssData = $this->replaceLocalUrlTags($cssData);

        return "<style type=\"text/css\">\n" . $cssData . '</style>';
    }
private function getStylesheetContent($path)
    {
        if ($this->isExternalStylesheet($path)) {
            $cssData = $this->getRequestHandler()->getContent($path);
        } else {
            if (file_exists($path)) {
                $cssData = file_get_contents($path);
            } else {
                return;
            }
        }

        $cssData = $this->replaceLocalUrlTags($cssData);

        return "<style type=\"text/css\">\n" . $cssData . '</style>';
    }
private function getStylesheetContent ( $ path ) { if ( $ this -> isExternalStylesheet ( $ path ) ) { $ cssData = $ this -> getRequestHandler ( ) -> getContent ( $ path ) ; } else { if ( file_exists ( $ path ) ) { $ cssData = file_get_contents ( $ path ) ; } else { return ; } } $ cssData = $ this -> replaceLocalUrlTags ( $ cssData ) ; return "<style type=\"text/css\">\n" . $ cssData . '</style>' ; }
Retrieve the contents from a CSS file.

@param  string $path
@return string
Retrieve the contents from a CSS file .