PHP 클래스 SassString

Provides operations and type testing for Sass strings.
상속: extends SassLiteral
파일 보기 프로젝트 열기: richthegeek/phpsass 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$quote string quote type; double or single quotes, or unquoted.

공개 메소드들

메소드 설명
__construct ( $value ) : SassString class constructor
getTypeOf ( )
getValue ( ) : string Returns the value of this string.
isa ( $subject ) : mixed Returns a value indicating if a token of this type can be matched at the start of the subject string.
op_eq ( $other ) Equals - works better
op_plus ( $other ) : sassString String addition.
op_times ( sassNumber $other ) : sassString String multiplication.
toBoolean ( ) Evaluates the value as a boolean.
toString ( ) : string Returns a string representation of the value.
toVar ( )

메소드 상세

__construct() 공개 메소드

class constructor
public __construct ( $value ) : SassString
리턴 SassString

getTypeOf() 공개 메소드

public getTypeOf ( )

getValue() 공개 메소드

Returns the value of this string.
public getValue ( ) : string
리턴 string the string

isa() 공개 정적인 메소드

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

op_eq() 공개 메소드

Equals - works better
public op_eq ( $other )

op_plus() 공개 메소드

Concatenates this and other. The resulting string will be quoted in the same way as this.
public op_plus ( $other ) : sassString
리턴 sassString the string result

op_times() 공개 메소드

this is repeated other times
public op_times ( sassNumber $other ) : sassString
$other sassNumber the number of times to repeat this
리턴 sassString the string result

toBoolean() 공개 메소드

Evaluates the value as a boolean.
public toBoolean ( )

toString() 공개 메소드

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

toVar() 공개 메소드

public toVar ( )

프로퍼티 상세

$quote 공개적으로 프로퍼티

string quote type; double or single quotes, or unquoted.
public $quote