PHP Class PHPRtfLite_Unit

Author: Steffen Zeidler ([email protected])
Afficher le fichier Open project: phprtflite/phprtflite Class Usage Examples

Méthodes publiques

Méthode Description
convertTo ( float $value, float $unitFrom, float $unitTo ) : float converts the value to another unit
getGlobalUnit ( ) : string gets global unit
getPointsInTwips ( float $value ) : integer gets points in twips
getUnitInTwips ( float $value ) : float gets unit in twips
setGlobalUnit ( string $unit ) sets global unit

Method Details

convertTo() public static méthode

converts the value to another unit
public static convertTo ( float $value, float $unitFrom, float $unitTo ) : float
$value float
$unitFrom float
$unitTo float
Résultat float

getGlobalUnit() public static méthode

gets global unit
public static getGlobalUnit ( ) : string
Résultat string

getPointsInTwips() public static méthode

gets points in twips
public static getPointsInTwips ( float $value ) : integer
$value float
Résultat integer

getUnitInTwips() public static méthode

gets unit in twips
public static getUnitInTwips ( float $value ) : float
$value float
Résultat float

setGlobalUnit() public static méthode

sets global unit
public static setGlobalUnit ( string $unit )
$unit string