You are here

public function PHPExcel_Worksheet_Drawing::getIndexedFilename in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing.php \PHPExcel_Worksheet_Drawing::getIndexedFilename()

Get indexed filename (using image index)

Return value

string

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing.php, line 71

Class

PHPExcel_Worksheet_Drawing
PHPExcel_Worksheet_Drawing

Code

public function getIndexedFilename() {
  $fileName = $this
    ->getFilename();
  $fileName = str_replace(' ', '_', $fileName);
  return str_replace('.' . $this
    ->getExtension(), '', $fileName) . $this
    ->getImageIndex() . '.' . $this
    ->getExtension();
}