__construct()
createDebugErrorString()
displayCss()
getDebugErrorsAsCss()
getTextShadowRegex()
handleIfModifiedSinceHeader()
parseInput()
prepareCssForOutput()
renderCss()
renderCssFromObjects()
run()
translateCssRules()
_handleRgbaReplacement()
_prepareForOutput()
$_cssRequested
$_displayStyles
$_inputModifiedDate
$_smilieSprites
$_styleId
$_styleModifiedDate
$_textDirection
Class to output CSS data quickly for public facing pages.
This class is not designed to be used with the MVC structure; this allows us to significantly reduce the amount of overhead in a request.
This class is entirely self sufficient. It handles parsing the input, getting the data, rendering it, and manipulating HTTP headers.
package | XenForo_CssOutput |
---|
__construct(array $input)
array
Array of input. Style and CSS will be pulled from this.
createDebugErrorString(array $invalidPropertyAccess) : string
array
Format: [group] => true ..OR.. [group][value] => true
string
displayCss(string $css)
Also outputs the necessary HTTP headers.
string
getDebugErrorsAsCss(array $errors) : string
array
Collection of errors: [template name] => error text
string
getTextShadowRegex() : string
Used to fix a Chrome rendering 'feature'.
link | http://code.google.com/p/chromium/issues/detail?id=23440 |
---|
string
handleIfModifiedSinceHeader(array $server)
parseInput(array $input)
The style ID will be found in "style" and CSS list in "css". The CSS should be comma-delimited.
array
prepareCssForOutput($css, $direction, $minify)
renderCss() : string
string
renderCssFromObjects(array $templates, boolean $withDebug) : string
array
Array of XenForo_Template_Abstract objects
boolean
If true, output debug CSS when invalid properties are accessed
string
run()
This will instantiate the object, pull the data from $_REQUEST, and then output the CSS.
translateCssRules(string $output) : string
string
string
_handleRgbaReplacement(array $match) : string
array
Match from regex
string
_prepareForOutput()
$_cssRequested : array
These will have ".css" appended to them and requested as templates.
$_displayStyles : array
$_inputModifiedDate : integer
(Used to compare to If-Modified-Since header.)
$_smilieSprites : array
$_styleId : integer
$_styleModifiedDate : integer
Used to output Last-Modified header.
$_textDirection : string
Either ltr or rtl.