You are here

public function CSSCompression_Format::readability in Advanced CSS/JS Aggregation 7

Same name and namespace in other branches
  1. 6 advagg_css_compress/css-compressor-3.x/src/lib/Format.inc \CSSCompression_Format::readability()

Reformats compressed CSS into specified format

Parameters

(int) readability: Readability level of compressed output:

(array) selectors: Array of selectors:

(array) details: Array of declarations:

File

advagg_css_compress/css-compressor-3.x/src/lib/Format.inc, line 50

Class

CSSCompression_Format
CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com

Code

public function readability($readability = CSSCompression::READ_NONE, $selectors = array(), $details = array()) {
  if (isset($this->readability[$readability])) {
    $fn = $this->readability[$readability];
    return trim($this
      ->{$fn}($selectors, $details));
  }
  else {
    return 'Invalid Readability Value';
  }
}