CssLint\Properties

Methods

| Name | Description | |——|————-| |getAllowedIndentationChars|Retrieve indentation chars allowed by the linter| |isAllowedIndentationChar|Check if the given char is allowed as an indentation char| |mergeConstructors|Merge the given constructors properties with the current ones| |mergeNonStandards|Merge the given non standards properties with the current ones| |mergeStandards|Merge the given standards properties with the current ones| |propertyExists|Checks that the given CSS property is an existing one| |setAllowedIndentationChars|Define the indentation chars allowed by the linter| |setOptions|Override default properties “allowedIndentationChars” => [” “] or [“\t”]: will override current property “constructors”: [“property” => bool]: will merge with current property “standards”: [“property” => bool]: will merge with current property “nonStandards”: [“property” => bool]: will merge with current property|

Properties::getAllowedIndentationChars

Description

public getAllowedIndentationChars (void)

Retrieve indentation chars allowed by the linter

Parameters

This function has no parameters.

Return Values

array

a list of allowed indentation chars


Properties::isAllowedIndentationChar

Description

public isAllowedIndentationChar (string $sChar)

Check if the given char is allowed as an indentation char

Parameters

Return Values

bool

according to whether the character is allowed or not


Properties::mergeConstructors

Description

public mergeConstructors (array $aConstructors)

Merge the given constructors properties with the current ones

Parameters

Return Values

void


Properties::mergeNonStandards

Description

public mergeNonStandards (array $aNonStandards)

Merge the given non standards properties with the current ones

Parameters

Return Values

void


Properties::mergeStandards

Description

public mergeStandards (array $aStandards)

Merge the given standards properties with the current ones

Parameters

Return Values

void


Properties::propertyExists

Description

public propertyExists (string $sProperty)

Checks that the given CSS property is an existing one

Parameters

Return Values

bool

true if the property exists, else returns false


Properties::setAllowedIndentationChars

Description

public setAllowedIndentationChars (array $aAllowedIndentationChars)

Define the indentation chars allowed by the linter

Parameters

Return Values

void


Properties::setOptions

Description

public setOptions (void)

Override default properties “allowedIndentationChars” => [” “] or [“\t”]: will override current property “constructors”: [“property” => bool]: will merge with current property “standards”: [“property” => bool]: will merge with current property “nonStandards”: [“property” => bool]: will merge with current property

Parameters

This function has no parameters.

Return Values

void