[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 160 lines (4 kb) |
Included or required: | 1 time |
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 |
param: string $s Unit string, like '2em' or '3.4in' return: HTMLPurifier_Length |
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. param: HTMLPurifier_Length $l return: int |
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |