You are here

public function PHPExcel_Chart_Layout::__construct in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Layout.php \PHPExcel_Chart_Layout::__construct()

* Create a new PHPExcel_Chart_Layout

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Layout.php, line 146

Class

PHPExcel_Chart_Layout
PHPExcel_Chart_Layout

Code

public function __construct($layout = array()) {
  if (isset($layout['layoutTarget'])) {
    $this->_layoutTarget = $layout['layoutTarget'];
  }
  if (isset($layout['xMode'])) {
    $this->_xMode = $layout['xMode'];
  }
  if (isset($layout['yMode'])) {
    $this->_yMode = $layout['yMode'];
  }
  if (isset($layout['x'])) {
    $this->_xPos = (double) $layout['x'];
  }
  if (isset($layout['y'])) {
    $this->_yPos = (double) $layout['y'];
  }
  if (isset($layout['w'])) {
    $this->_width = (double) $layout['w'];
  }
  if (isset($layout['h'])) {
    $this->_height = (double) $layout['h'];
  }
}