Öffentliche Methoden | |
__construct ($n= '0', $u=false) | |
toString () | |
getN () | |
getUnit () | |
isValid () | |
compareTo ($l) | |
Öffentliche, statische Methoden | |
static | make ($s) |
Geschützte Methoden | |
validate () | |
Geschützte Attribute | |
$n | |
$unit | |
$isValid | |
Statische, geschützte Attribute | |
static | $allowedUnits |
Represents a measurable length, with a string numeric magnitude and a unit. This object is immutable.
Definiert in Zeile 7 der Datei Length.php.
__construct | ( | $n = '0' , |
|
$u = false |
|||
) |
string | $n | Magnitude |
bool | string | $u | Unit |
Definiert in Zeile 41 der Datei Length.php.
Benutzt $n.
compareTo | ( | $l) |
Compares two lengths, and returns 1 if greater, -1 if less and 0 if equal.
HTMLPurifier_Length | $l |
Definiert in Zeile 144 der Datei Length.php.
getN | ( | ) |
Retrieves string numeric magnitude.
Definiert in Zeile 111 der Datei Length.php.
Benutzt $n.
getUnit | ( | ) |
isValid | ( | ) |
Returns true if this length unit is valid.
Definiert in Zeile 129 der Datei Length.php.
Benutzt $isValid und validate().
Wird benutzt von toString().
|
static |
string | $s | Unit string, like '2em' or '3.4in' |
Definiert in Zeile 52 der Datei Length.php.
Wird benutzt von HTMLPurifier_AttrDef_CSS_Length\__construct() und HTMLPurifier_AttrDef_CSS_Length\validate().
toString | ( | ) |
Returns string representation of number.
Definiert in Zeile 99 der Datei Length.php.
|
protected |
Validates the number and unit.
Definiert in Zeile 70 der Datei Length.php.
Benutzt $allowedUnits.
Wird benutzt von isValid().
|
staticprotected |
Array Lookup array of units recognized by CSS 2.1 array
Definiert in Zeile 32 der Datei Length.php.
Wird benutzt von validate().
|
protected |
Whether or not this length is valid. Null if not calculated yet. bool
Definiert in Zeile 26 der Datei Length.php.
Wird benutzt von isValid().
|
protected |
String numeric magnitude. string
Definiert in Zeile 14 der Datei Length.php.
Wird benutzt von __construct(), getN() und make().
|
protected |
String unit. False is permitted if $n = 0. string|bool
Definiert in Zeile 20 der Datei Length.php.
Wird benutzt von getUnit(), make() und toString().