PHP Class SassList

Inheritance: extends SassLiteral
ファイルを表示 Open project: richthegeek/phpsass Class Usage Examples

Public Properties

Property Type Description
$separator

Public Methods

Method 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 method

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

_build_list() public static method

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

_parse_list() public static method

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

append() public method

public append ( $other, $separator = null )

getValue() public method

Returns the value of this boolean.
public getValue ( ) : boolean
return boolean the value of this boolean

index() public method

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 method

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
return mixed match at the start of the string or false if no match

length() public method

public length ( )

nth() public method

public nth ( $i )

toString() public method

Returns a string representation of the value.
public toString ( ) : string
return string string representation of the value.

Property Details

$separator public_oe property

public $separator