PHP Класс SassList

Наследование: extends SassLiteral
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$separator

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

SassBoolean constructor
public __construct ( string $value, string $separator = 'auto' ) : SassBoolean
$value string value of the boolean type
$separator string
Результат SassBoolean

_build_list() публичный статический Метод

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

_parse_list() публичный статический Метод

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

append() публичный Метод

public append ( $other, $separator = null )

getValue() публичный Метод

Returns the value of this boolean.
public getValue ( ) : boolean
Результат boolean the value of this boolean

index() публичный Метод

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() публичный статический Метод

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
Результат mixed match at the start of the string or false if no match

length() публичный Метод

public length ( )

nth() публичный Метод

public nth ( $i )

toString() публичный Метод

Returns a string representation of the value.
public toString ( ) : string
Результат string string representation of the value.

Описание свойств

$separator публичное свойство

public $separator