| 1 | <?php |
||
| 7 | class Image extends AbstractBackground |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $relationId; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Path |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $path; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | protected $height; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | protected $width; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get Path |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 2 | public function getPath() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Set Path |
||
| 43 | * |
||
| 44 | * @param string $pValue File path |
||
| 45 | * @param boolean $pVerifyFile Verify file |
||
| 46 | * @throws \Exception |
||
| 47 | * @return \PhpOffice\PhpPresentation\Shape\Drawing |
||
| 48 | */ |
||
| 49 | 2 | public function setPath($pValue = '', $pVerifyFile = true) |
|
| 68 | |||
| 69 | /** |
||
| 70 | * Get Filename |
||
| 71 | * |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | 1 | public function getFilename() |
|
| 78 | |||
| 79 | /** |
||
| 80 | * Get Extension |
||
| 81 | * |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | 2 | public function getExtension() |
|
| 90 | |||
| 91 | /** |
||
| 92 | * Get indexed filename (using image index) |
||
| 93 | * |
||
| 94 | * @return string |
||
| 95 | */ |
||
| 96 | 2 | public function getIndexedFilename($numSlide) |
|
| 100 | } |
||
| 101 |