PHP Class PhpOffice\PhpPresentation\DocumentLayout

ファイルを表示 Open project: phpoffice/phppowerpoint Class Usage Examples

Public Methods

Method Description
__construct ( ) Create a new \PhpOffice\PhpPresentation\DocumentLayout
getCX ( string $unit = self::UNIT_EMU ) : integer Get Document Layout cx
getCY ( string $unit = self::UNIT_EMU ) : integer Get Document Layout cy
getDocumentLayout ( ) : string Get Document Layout
setCX ( float $value, string $unit = self::UNIT_EMU ) : DocumentLayout Get Document Layout cx
setCY ( float $value, string $unit = self::UNIT_EMU ) : DocumentLayout Get Document Layout cy
setDocumentLayout ( array | string $pValue = self::LAYOUT_SCREEN_4X3, boolean $isLandscape = true ) : DocumentLayout Set Document Layout

Protected Methods

Method Description
convertUnit ( float $value, string $fromUnit, string $toUnit ) : float Convert EMUs to differents units

Method Details

__construct() public method

Create a new \PhpOffice\PhpPresentation\DocumentLayout
public __construct ( )

convertUnit() protected method

Convert EMUs to differents units
protected convertUnit ( float $value, string $fromUnit, string $toUnit ) : float
$value float
$fromUnit string
$toUnit string
return float

getCX() public method

Get Document Layout cx
public getCX ( string $unit = self::UNIT_EMU ) : integer
$unit string
return integer

getCY() public method

Get Document Layout cy
public getCY ( string $unit = self::UNIT_EMU ) : integer
$unit string
return integer

getDocumentLayout() public method

Get Document Layout
public getDocumentLayout ( ) : string
return string

setCX() public method

Get Document Layout cx
public setCX ( float $value, string $unit = self::UNIT_EMU ) : DocumentLayout
$value float
$unit string
return DocumentLayout

setCY() public method

Get Document Layout cy
public setCY ( float $value, string $unit = self::UNIT_EMU ) : DocumentLayout
$value float
$unit string
return DocumentLayout

setDocumentLayout() public method

Set Document Layout
public setDocumentLayout ( array | string $pValue = self::LAYOUT_SCREEN_4X3, boolean $isLandscape = true ) : DocumentLayout
$pValue array | string
$isLandscape boolean
return DocumentLayout