PHP Class SassList

Inheritance: extends SassLiteral
Afficher le fichier Open project: richthegeek/phpsass Class Usage Examples

Méthodes publiques

Свойство Type Description
$separator

Méthodes publiques

Méthode Description
__construct ( string $value, string $separator = 'auto' ) : SassBoolean SassBoolean constructor
_build_list ( $list, $separator = ',' )
_parse_list ( $list, $separator = 'auto', $lex = true, $context = null )
append ( $other, $separator = null )
getValue ( ) : boolean Returns the value of this boolean.
index ( $value ) New function index returns the list index of a value within a list. For example: index(1px solid red, solid) returns 2. When the value is not found false is returned.
isa ( string $subject ) : mixed Returns a value indicating if a token of this type can be matched at the start of the subject string.
length ( )
nth ( $i )
toString ( ) : string Returns a string representation of the value.

Method Details

__construct() public méthode

SassBoolean constructor
public __construct ( string $value, string $separator = 'auto' ) : SassBoolean
$value string value of the boolean type
$separator string
Résultat SassBoolean

_build_list() public static méthode

public static _build_list ( $list, $separator = ',' )

_parse_list() public static méthode

public static _parse_list ( $list, $separator = 'auto', $lex = true, $context = null )

append() public méthode

public append ( $other, $separator = null )

getValue() public méthode

Returns the value of this boolean.
public getValue ( ) : boolean
Résultat boolean the value of this boolean

index() public méthode

New function index returns the list index of a value within a list. For example: index(1px solid red, solid) returns 2. When the value is not found false is returned.
public index ( $value )

isa() public static méthode

Returns a value indicating if a token of this type can be matched at the start of the subject string.
public static isa ( string $subject ) : mixed
$subject string the subject string
Résultat mixed match at the start of the string or false if no match

length() public méthode

public length ( )

nth() public méthode

public nth ( $i )

toString() public méthode

Returns a string representation of the value.
public toString ( ) : string
Résultat string string representation of the value.

Property Details

$separator public_oe property

public $separator