function csstidy::log in Advanced CSS/JS Aggregation 6
Add a message to the message log
@access private @version 1.0
Parameters
string $message:
string $type:
integer $line:
3 calls to csstidy::log()
- csstidy::parse in advagg_css_compress/
csstidy/ class.csstidy.inc - Parses CSS in $string. The code is saved as array in $this->css
- csstidy::property_is_next in advagg_css_compress/
csstidy/ class.csstidy.inc - Checks if the next word in a string from pos is a CSS property
- csstidy::_unicode in advagg_css_compress/
csstidy/ class.csstidy.inc - Parse unicode notations and find a replacement character
File
- advagg_css_compress/
csstidy/ class.csstidy.inc, line 387
Class
- csstidy
- CSS Parser class
Code
function log($message, $type, $line = -1) {
if ($line === -1) {
$line = $this->line;
}
$line = intval($line);
$add = array(
'm' => $message,
't' => $type,
);
if (!isset($this->log[$line]) || !in_array($add, $this->log[$line])) {
$this->log[$line][] = $add;
}
}