1: <?php
2: /**
3: * An abstract utility class to handle Css manipulation. All methods
4: * are statically available.
5: */
6:
7: /**
8: * An abstract utility class to handle Css manipulation. All methods
9: * are statically available.
10: */
11: abstract class QCss {
12: /**
13: * This faux constructor method throws a caller exception.
14: * The Css object should never be instantiated, and this constructor
15: * override simply guarantees it.
16: *
17: * @throws QCallerException
18: * @return \QCss
19: */
20: public final function __construct() {
21: throw new QCallerException('Css should never be instantiated. All methods and variables are publicly statically accessible.');
22: }
23:
24: /**
25: * Returns the formatted value of type <length>.
26: * See http://www.w3.org/TR/CSS1/#units for more info.
27: * @param string $strValue The number or string to be formatted to the <length> compatible value.
28: * @return string the formatted value of type <length>.
29: * @deprecated use QHtml::formatLength
30: */
31: public final static function FormatLength($strValue) {
32: return QHtml::FormatLength($strValue);
33: }
34: }