Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
(no description)
File Size: | 162 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Class: HTMLPurifier_Length - X-Ref
Represents a measurable length, with a string numeric magnitude__construct($n = '0', $u = false) X-Ref |
param: string $n Magnitude param: bool|string $u Unit |
make($s) X-Ref |
return: HTMLPurifier_Length param: string $s Unit string, like '2em' or '3.4in' |
validate() X-Ref |
Validates the number and unit. return: bool |
toString() X-Ref |
Returns string representation of number. return: string |
getN() X-Ref |
Retrieves string numeric magnitude. return: string |
getUnit() X-Ref |
Retrieves string unit. return: string |
isValid() X-Ref |
Returns true if this length unit is valid. return: bool |
compareTo($l) X-Ref |
Compares two lengths, and returns 1 if greater, -1 if less and 0 if equal. return: int param: HTMLPurifier_Length $l |