XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe HTMLPurifier_Length

Fonctions membres publiques

 __construct ($n='0', $u=false)
 
 toString ()
 
 getN ()
 
 getUnit ()
 
 isValid ()
 
 compareTo ($l)
 

Fonctions membres publiques statiques

static make ($s)
 

Fonctions membres protégées

 validate ()
 

Attributs protégés

 $n
 
 $unit
 
 $isValid
 

Attributs protégés statiques

static $allowedUnits
 

Description détaillée

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

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $n = '0',
  $u = false 
)
Paramètres
string$nMagnitude
bool | string$uUnit

Documentation des fonctions membres

◆ compareTo()

compareTo (   $l)

Compares two lengths, and returns 1 if greater, -1 if less and 0 if equal.

Paramètres
HTMLPurifier_Length$l
Renvoie
int
Avertissement
If both values are too large or small, this calculation will not work properly

◆ getN()

getN ( )

Retrieves string numeric magnitude.

Renvoie
string

◆ getUnit()

getUnit ( )

Retrieves string unit.

Renvoie
string

◆ isValid()

isValid ( )

Returns true if this length unit is valid.

Renvoie
bool
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ make()

static make (   $s)
static
Paramètres
string$sUnit string, like '2em' or '3.4in'
Renvoie
HTMLPurifier_Length
Avertissement
Does not perform validation.
+ Voici le graphe des appelants de cette fonction :

◆ toString()

toString ( )

Returns string representation of number.

Renvoie
string
+ Voici le graphe d'appel pour cette fonction :

◆ validate()

validate ( )
protected

Validates the number and unit.

Renvoie
bool
+ Voici le graphe des appelants de cette fonction :

Documentation des champs

◆ $allowedUnits

$allowedUnits
staticprotected
Valeur initiale :
= array(
'em' => true, 'ex' => true, 'px' => true, 'in' => true,
'cm' => true, 'mm' => true, 'pt' => true, 'pc' => true,
'ch' => true, 'rem' => true, 'vw' => true, 'vh' => true,
'vmin' => true, 'vmax' => true
)

Array Lookup array of units recognized by CSS 3 @type array

◆ $isValid

$isValid
protected

Whether or not this length is valid. Null if not calculated yet. @type bool

◆ $n

$n
protected

String numeric magnitude. @type string

◆ $unit

$unit
protected

String unit. False is permitted if $n = 0. @type string|bool


La documentation de cette classe a été générée à partir du fichier suivant :