PHP 클래스 PHPRtfLite_Unit

저자: Steffen Zeidler ([email protected])
파일 보기 프로젝트 열기: phprtflite/phprtflite 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

convertTo() 공개 정적인 메소드

converts the value to another unit
public static convertTo ( float $value, float $unitFrom, float $unitTo ) : float
$value float
$unitFrom float
$unitTo float
리턴 float

getGlobalUnit() 공개 정적인 메소드

gets global unit
public static getGlobalUnit ( ) : string
리턴 string

getPointsInTwips() 공개 정적인 메소드

gets points in twips
public static getPointsInTwips ( float $value ) : integer
$value float
리턴 integer

getUnitInTwips() 공개 정적인 메소드

gets unit in twips
public static getUnitInTwips ( float $value ) : float
$value float
리턴 float

setGlobalUnit() 공개 정적인 메소드

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