You are here

public function PHPExcel_Worksheet_HeaderFooter::getImages in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooter.php \PHPExcel_Worksheet_HeaderFooter::getImages()

Get header/footer images

Return value

PHPExcel_Worksheet_HeaderFooterDrawing[]

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooter.php, line 438

Class

PHPExcel_Worksheet_HeaderFooter
PHPExcel_Worksheet_HeaderFooter

Code

public function getImages() {

  // Sort array
  $images = array();
  if (isset($this->_headerFooterImages[self::IMAGE_HEADER_LEFT])) {
    $images[self::IMAGE_HEADER_LEFT] = $this->_headerFooterImages[self::IMAGE_HEADER_LEFT];
  }
  if (isset($this->_headerFooterImages[self::IMAGE_HEADER_CENTER])) {
    $images[self::IMAGE_HEADER_CENTER] = $this->_headerFooterImages[self::IMAGE_HEADER_CENTER];
  }
  if (isset($this->_headerFooterImages[self::IMAGE_HEADER_RIGHT])) {
    $images[self::IMAGE_HEADER_RIGHT] = $this->_headerFooterImages[self::IMAGE_HEADER_RIGHT];
  }
  if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_LEFT])) {
    $images[self::IMAGE_FOOTER_LEFT] = $this->_headerFooterImages[self::IMAGE_FOOTER_LEFT];
  }
  if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_CENTER])) {
    $images[self::IMAGE_FOOTER_CENTER] = $this->_headerFooterImages[self::IMAGE_FOOTER_CENTER];
  }
  if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_RIGHT])) {
    $images[self::IMAGE_FOOTER_RIGHT] = $this->_headerFooterImages[self::IMAGE_FOOTER_RIGHT];
  }
  $this->_headerFooterImages = $images;
  return $this->_headerFooterImages;
}