[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/htmlpurifier/library/HTMLPurifier/ -> Length.php (summary)

(no description)

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

Defines 1 class

HTMLPurifier_Length:: (8 methods):
  __construct()
  make()
  validate()
  toString()
  getN()
  getUnit()
  isValid()
  compareTo()


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: number $n Magnitude
param: string $u Unit

make($s)   X-Ref

param: string $s Unit string, like '2em' or '3.4in'

validate()   X-Ref
Validates the number and unit.


toString()   X-Ref
Returns string representation of number.


getN()   X-Ref
Retrieves string numeric magnitude.


getUnit()   X-Ref
Retrieves string unit.


isValid()   X-Ref
Returns true if this length unit is valid.


compareTo($l)   X-Ref
Compares two lengths, and returns 1 if greater, -1 if less and 0 if equal.




Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1