Class HTMLPurifier_Length
Represents a measurable length, with a string numeric magnitude and a unit. This object is immutable.
public
|
|
public static
|
|
protected
boolean
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
integer
|
#
compareTo(
Compares two lengths, and returns 1 if greater, -1 if less and 0 if equal. |
protected
mixed
|
$n |
|
#
String numeric magnitude. |
protected
mixed
|
$unit |
|
#
String unit. False is permitted if $n = 0. |
protected
mixed
|
$isValid |
|
#
Whether or not this length is valid. Null if not calculated yet. |
protected static
array
|
$allowedUnits | array(
'em' => true, 'ex' => true, 'px' => true, 'in' => true,
'cm' => true, 'mm' => true, 'pt' => true, 'pc' => true
) |
#
Array Lookup array of units recognized by CSS 2.1 |