Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS\Parsing
ParserState::setCharset
Sets the charset to be used if the CSS does not contain an @charset declaration.
Метод класса: ParserState{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$ParserState = new ParserState(); $ParserState->setCharset( $sCharset );
- $sCharset(строка) (обязательный)
- .
Код ParserState::setCharset() ParserState::setCharset WC 11.3.0
public function setCharset($sCharset)
{
$this->sCharset = $sCharset;
$this->aText = $this->strsplit($this->sText);
if (is_array($this->aText)) {
$this->iLength = count($this->aText);
}
}