ENGLISH
ENGLISH = 1
Class for converting between different unit-lengths as specified by CSS.
$units
Units information array. Units are grouped into measuring systems (English, Metric), and are assigned an integer representing the conversion factor between that unit and the smallest unit in the system. Numeric indexes are actually magical constants that encode conversion data from one system to the next, with a O(n^2) constraint on memory (this is generally not a problem, since the number of measuring systems is small.)
convert(\HTMLPurifier_Length $length, string $to_unit) : \HTMLPurifier_Length|bool
Converts a length object of one unit into another unit.
\HTMLPurifier_Length | $length | Instance of HTMLPurifier_Length to convert. You must validate() it before passing it here! |
string | $to_unit | Unit to convert to. |