Öffentliche Methoden | |
| __construct ($n= '0', $u=false) | |
| toString () | |
| getN () | |
| getUnit () | |
| isValid () | |
| compareTo ($l) | |
Öffentliche, statische Methoden | |
| static | make ($s) |
Geschützte Methoden | |
| validate () | |
Geschützte Attribute | |
| $n | |
| $unit | |
| $isValid | |
Statische geschützte Attribute | |
| static | $allowedUnits |
Definiert in Zeile 7 der Datei Length.php.
| __construct | ( | $ | n = '0', |
|
| $ | u = false | |||
| ) |
| compareTo | ( | $ | l | ) |
Compares two lengths, and returns 1 if greater, -1 if less and 0 if equal.
Definiert in Zeile 103 der Datei Length.php.
| getN | ( | ) |
Retrieves string numeric magnitude.
Definiert in Zeile 83 der Datei Length.php.
| getUnit | ( | ) |
Retrieves string unit.
Definiert in Zeile 88 der Datei Length.php.
| isValid | ( | ) |
Returns true if this length unit is valid.
Definiert in Zeile 93 der Datei Length.php.


| static make | ( | $ | s | ) | [static] |
| string | $s Unit string, like '2em' or '3.4in' |
Definiert in Zeile 46 der Datei Length.php.
| toString | ( | ) |
Returns string representation of number.
Definiert in Zeile 75 der Datei Length.php.

| validate | ( | ) | [protected] |
Validates the number and unit.
Definiert in Zeile 58 der Datei Length.php.

$allowedUnits [static, protected] |
Initialisierung:
array(
'em' => true, 'ex' => true, 'px' => true, 'in' => true,
'cm' => true, 'mm' => true, 'pt' => true, 'pc' => true
)
Definiert in Zeile 28 der Datei Length.php.
$isValid [protected] |
Whether or not this length is valid. Null if not calculated yet.
Definiert in Zeile 23 der Datei Length.php.
$n [protected] |
String numeric magnitude.
Definiert in Zeile 13 der Datei Length.php.
$unit [protected] |
String unit. False is permitted if $n = 0.
Definiert in Zeile 18 der Datei Length.php.
| Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|