PHP Class PhpOffice\PhpPresentation\AbstractShape

Inheritance: implements PhpOffice\PhpPresentation\ComparableInterface
Afficher le fichier Open project: phpoffice/phppowerpoint Class Usage Examples

Protected Properties

Свойство Type Description
$container PhpOffice\PhpPresentation\ShapeContainerInterface Container
$height integer Height
$hyperlink PhpOffice\PhpPresentation\Shape\Hyperlink Hyperlink
$offsetX integer Offset X
$offsetY integer Offset Y
$placeholder PhpOffice\PhpPresentation\Shape\Placeholder PlaceHolder
$rotation integer Rotation
$shadow PhpOffice\PhpPresentation\Style\Shadow Shadow
$width integer Width

Méthodes publiques

Méthode Description
__clone ( ) Magic Method : clone
__construct ( ) Create a new self
getBorder ( ) : PhpOffice\PhpPresentation\Style\Border Get Border
getContainer ( ) : PhpOffice\PhpPresentation\Container Get Container, Slide or Group
getFill ( ) : PhpOffice\PhpPresentation\Style\Fill Get Fill
getHashCode ( ) : string Get hash code
getHashIndex ( ) : string Get hash index
getHeight ( ) : integer Get Height
getHyperlink ( ) : PhpOffice\PhpPresentation\Shape\Hyperlink Get Hyperlink
getOffsetX ( ) : integer Get OffsetX
getOffsetY ( ) : integer Get OffsetY
getPlaceholder ( )
getRotation ( ) : integer Get Rotation
getShadow ( ) : PhpOffice\PhpPresentation\Style\Shadow Get Shadow
getWidth ( ) : integer Get Width
hasHyperlink ( ) : boolean Has Hyperlink?
isPlaceholder ( )
setContainer ( PhpOffice\PhpPresentation\ShapeContainerInterface $pValue = null, boolean $pOverrideOld = false ) : self Set Container, Slide or Group
setFill ( PhpOffice\PhpPresentation\Style\Fill $pValue = null ) : AbstractShape Set Fill
setHashIndex ( string $value ) Set hash index
setHeight ( integer $pValue ) : self Set Height
setHyperlink ( PhpOffice\PhpPresentation\Shape\Hyperlink $pHyperlink = null ) : self Set Hyperlink
setOffsetX ( integer $pValue ) : self Set OffsetX
setOffsetY ( integer $pValue ) : self Set OffsetY
setPlaceHolder ( Placeholder $placeholder )
setRotation ( integer $pValue ) : self Set Rotation
setShadow ( PhpOffice\PhpPresentation\Style\Shadow $pValue = null ) : self Set Shadow
setWidth ( integer $pValue ) : self Set Width
setWidthAndHeight ( integer $width, integer $height ) : self Set width and height with proportional resize

Method Details

__clone() public méthode

Magic Method : clone
public __clone ( )

__construct() public méthode

Create a new self
public __construct ( )

getBorder() public méthode

Get Border
public getBorder ( ) : PhpOffice\PhpPresentation\Style\Border
Résultat PhpOffice\PhpPresentation\Style\Border

getContainer() public méthode

Get Container, Slide or Group
public getContainer ( ) : PhpOffice\PhpPresentation\Container
Résultat PhpOffice\PhpPresentation\Container

getFill() public méthode

Get Fill
public getFill ( ) : PhpOffice\PhpPresentation\Style\Fill
Résultat PhpOffice\PhpPresentation\Style\Fill

getHashCode() public méthode

Get hash code
public getHashCode ( ) : string
Résultat string Hash code

getHashIndex() public méthode

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public getHashIndex ( ) : string
Résultat string Hash index

getHeight() public méthode

Get Height
public getHeight ( ) : integer
Résultat integer

getOffsetX() public méthode

Get OffsetX
public getOffsetX ( ) : integer
Résultat integer

getOffsetY() public méthode

Get OffsetY
public getOffsetY ( ) : integer
Résultat integer

getPlaceholder() public méthode

public getPlaceholder ( )

getRotation() public méthode

Get Rotation
public getRotation ( ) : integer
Résultat integer

getShadow() public méthode

Get Shadow
public getShadow ( ) : PhpOffice\PhpPresentation\Style\Shadow
Résultat PhpOffice\PhpPresentation\Style\Shadow

getWidth() public méthode

Get Width
public getWidth ( ) : integer
Résultat integer

isPlaceholder() public méthode

public isPlaceholder ( )

setContainer() public méthode

Set Container, Slide or Group
public setContainer ( PhpOffice\PhpPresentation\ShapeContainerInterface $pValue = null, boolean $pOverrideOld = false ) : self
$pValue PhpOffice\PhpPresentation\ShapeContainerInterface
$pOverrideOld boolean If a Slide has already been assigned, overwrite it and remove image from old Slide?
Résultat self

setFill() public méthode

Set Fill
public setFill ( PhpOffice\PhpPresentation\Style\Fill $pValue = null ) : AbstractShape
$pValue PhpOffice\PhpPresentation\Style\Fill
Résultat AbstractShape

setHashIndex() public méthode

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public setHashIndex ( string $value )
$value string Hash index

setHeight() public méthode

Set Height
public setHeight ( integer $pValue ) : self
$pValue integer
Résultat self

setOffsetX() public méthode

Set OffsetX
public setOffsetX ( integer $pValue ) : self
$pValue integer
Résultat self

setOffsetY() public méthode

Set OffsetY
public setOffsetY ( integer $pValue ) : self
$pValue integer
Résultat self

setPlaceHolder() public méthode

public setPlaceHolder ( Placeholder $placeholder )
$placeholder PhpOffice\PhpPresentation\Shape\Placeholder

setRotation() public méthode

Set Rotation
public setRotation ( integer $pValue ) : self
$pValue integer
Résultat self

setShadow() public méthode

Set Shadow
public setShadow ( PhpOffice\PhpPresentation\Style\Shadow $pValue = null ) : self
$pValue PhpOffice\PhpPresentation\Style\Shadow
Résultat self

setWidth() public méthode

Set Width
public setWidth ( integer $pValue ) : self
$pValue integer
Résultat self

setWidthAndHeight() public méthode

Set width and height with proportional resize
public setWidthAndHeight ( integer $width, integer $height ) : self
$width integer
$height integer
Résultat self

Property Details

$container protected_oe property

Container
protected ShapeContainerInterface,PhpOffice\PhpPresentation $container
Résultat PhpOffice\PhpPresentation\ShapeContainerInterface

$height protected_oe property

Height
protected int $height
Résultat integer

$offsetX protected_oe property

Offset X
protected int $offsetX
Résultat integer

$offsetY protected_oe property

Offset Y
protected int $offsetY
Résultat integer

$placeholder protected_oe property

PlaceHolder
protected Placeholder,PhpOffice\PhpPresentation\Shape $placeholder
Résultat PhpOffice\PhpPresentation\Shape\Placeholder

$rotation protected_oe property

Rotation
protected int $rotation
Résultat integer

$shadow protected_oe property

Shadow
protected Shadow,PhpOffice\PhpPresentation\Style $shadow
Résultat PhpOffice\PhpPresentation\Style\Shadow

$width protected_oe property

Width
protected int $width
Résultat integer