[ Index ]

PHP Cross Reference of Unnamed Project




/se3master/var/www/se3/includes/library/HTMLPurifier/ -> Length.php (summary)

(no description)

File Size: 160 lines (4 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_Length:: (8 methods):

Class: HTMLPurifier_Length  - X-Ref

Represents a measurable length, with a string numeric magnitude
and a unit. This object is immutable.

__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