Property | Type | Description | |
---|---|---|---|
$allowedUnits | Array Lookup array of units recognized by CSS 2.1 | ||
$isValid | Whether or not this length is valid. Null if not calculated yet. | ||
$n | String numeric magnitude. | ||
$unit | String unit. False is permitted if $n = 0. |
Method | Description | |
---|---|---|
__construct ( string $n = '0', boolean | string $u = false ) | ||
compareTo ( HTMLPurifier_Length $l ) : integer | Compares two lengths, and returns 1 if greater, -1 if less and 0 if equal. | |
getN ( ) : string | Retrieves string numeric magnitude. | |
getUnit ( ) : string | Retrieves string unit. | |
isValid ( ) : boolean | Returns true if this length unit is valid. | |
make ( string $s ) : HTMLPurifier_Length | ||
toString ( ) : string | Returns string representation of number. |
Method | Description | |
---|---|---|
validate ( ) : boolean | Validates the number and unit. |
protected static $allowedUnits |
protected $isValid |