Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

(no description)

File Size: 532 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BaseDrawing:: (29 methods):
  __construct()
  getImageIndex()
  getName()
  setName()
  getDescription()
  setDescription()
  getWorksheet()
  setWorksheet()
  getCoordinates()
  setCoordinates()
  getOffsetX()
  setOffsetX()
  getOffsetY()
  setOffsetY()
  getWidth()
  setWidth()
  getHeight()
  setHeight()
  setWidthAndHeight()
  getResizeProportional()
  setResizeProportional()
  getRotation()
  setRotation()
  getShadow()
  setShadow()
  getHashCode()
  __clone()
  setHyperlink()
  getHyperlink()


Class: BaseDrawing  - X-Ref

__construct()   X-Ref
Create a new BaseDrawing.


getImageIndex()   X-Ref
Get image index.

return: int

getName()   X-Ref
Get Name.

return: string

setName($pValue)   X-Ref
Set Name.

param: string $pValue
return: $this

getDescription()   X-Ref
Get Description.

return: string

setDescription($description)   X-Ref
Set Description.

param: string $description
return: $this

getWorksheet()   X-Ref
Get Worksheet.

return: Worksheet

setWorksheet(?Worksheet $pValue = null, $pOverrideOld = false)   X-Ref
Set Worksheet.

param: Worksheet $pValue
param: bool $pOverrideOld If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet?
return: $this

getCoordinates()   X-Ref
Get Coordinates.

return: string

setCoordinates($pValue)   X-Ref
Set Coordinates.

param: string $pValue eg: 'A1'
return: $this

getOffsetX()   X-Ref
Get OffsetX.

return: int

setOffsetX($pValue)   X-Ref
Set OffsetX.

param: int $pValue
return: $this

getOffsetY()   X-Ref
Get OffsetY.

return: int

setOffsetY($pValue)   X-Ref
Set OffsetY.

param: int $pValue
return: $this

getWidth()   X-Ref
Get Width.

return: int

setWidth($pValue)   X-Ref
Set Width.

param: int $pValue
return: $this

getHeight()   X-Ref
Get Height.

return: int

setHeight($pValue)   X-Ref
Set Height.

param: int $pValue
return: $this

setWidthAndHeight($width, $height)   X-Ref
Set width and height with proportional resize.

Example:
<code>
$objDrawing->setResizeProportional(true);
$objDrawing->setWidthAndHeight(160,120);
</code>

author: Vincent@luo MSN:kele_100@hotmail.com
param: int $width
param: int $height
return: $this

getResizeProportional()   X-Ref
Get ResizeProportional.

return: bool

setResizeProportional($pValue)   X-Ref
Set ResizeProportional.

param: bool $pValue
return: $this

getRotation()   X-Ref
Get Rotation.

return: int

setRotation($pValue)   X-Ref
Set Rotation.

param: int $pValue
return: $this

getShadow()   X-Ref
Get Shadow.

return: Drawing\Shadow

setShadow(?Drawing\Shadow $pValue = null)   X-Ref
Set Shadow.

param: Drawing\Shadow $pValue
return: $this

getHashCode()   X-Ref
Get hash code.

return: string Hash code

__clone()   X-Ref
Implement PHP __clone to create a deep clone, not just a shallow copy.


setHyperlink(?Hyperlink $pHyperlink = null)   X-Ref
No description

getHyperlink()   X-Ref

return: null|Hyperlink