PHP Class Sabberworm\CSS\Parser

Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( $sText, Sabberworm\CSS\Settings $oParserSettings = null )
getCharset ( )
parse ( )
setCharset ( $sCharset )

Private Methods

Method Description
comes ( $sString, $bCaseInsensitive = false )
consume ( $mValue = 1 )
consumeComment ( )
consumeExpression ( $mExpression )
consumeUntil ( $aEnd, $bIncludeEnd = false, $consumeEnd = false )
consumeWhiteSpace ( )
identifierIs ( $sIdentifier, $sMatch ) Tests an identifier for a given value. Since identifiers are all keywords, they can be vendor-prefixed. We need to check for these versions too.
inputLeft ( )
isEnd ( )
listDelimiterForRule ( $sRule )
parseAtRule ( )
parseCharacter ( $bIsForIdentifier )
parseColorValue ( )
parseDocument ( Sabberworm\CSS\CSSList\Document $oDocument )
parseIdentifier ( $bAllowFunctions = true, $bIgnoreCase = true )
parseList ( CSSList $oList, $bIsRoot = false )
parseNumericValue ( $bForColor = false )
parsePrimitiveValue ( )
parseRule ( )
parseRuleSet ( $oRuleSet )
parseSelector ( )
parseStringValue ( )
parseURLValue ( )
parseValue ( $aListDelimiters )
peek ( $iLength = 1, $iOffset )
streql ( $sString1, $sString2, $bCaseInsensitive = true )
strlen ( $sString )
strpos ( $sString, $sNeedle, $iOffset )
strtolower ( $sString )
substr ( $iStart, $iLength )

Method Details

__construct() public method

public __construct ( $sText, Sabberworm\CSS\Settings $oParserSettings = null )
$oParserSettings Sabberworm\CSS\Settings

getCharset() public method

public getCharset ( )

parse() public method

public parse ( )

setCharset() public method

public setCharset ( $sCharset )