function csstidy_print::size in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 6 advagg_css_compress/csstidy/class.csstidy_print.inc \csstidy_print::size()
Get the size of either input or output CSS in KB
@access public
@version 1.0
Parameters
string $loc default is "output":
Return value
integer
File
- advagg_css_compress/
csstidy/ class.csstidy_print.inc, line 403
Class
- csstidy_print
- CSS Printing class
Code
function size($loc = 'output') {
if ($loc === 'output' && !$this->output_css) {
$this
->formatted();
}
if ($loc === 'input') {
return strlen($this->input_css) / 1000;
}
else {
return strlen($this->output_css_plain) / 1000;
}
}