示例#1
0
 /**
  * Create a new PHPExcel with one Worksheet
  */
 public function __construct()
 {
     /** PHPExcel root directory */
     if (!defined('PHPEXCEL_ROOT')) {
         define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
         require PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php';
     }
     $this->_uniqueID = uniqid();
     $this->_calculationEngine = PHPExcel_Calculation::getInstance($this);
     // Initialise worksheet collection and add one worksheet
     $this->_workSheetCollection = array();
     $this->_workSheetCollection[] = new PHPExcel_Worksheet($this);
     $this->_activeSheetIndex = 0;
     // Create document properties
     $this->_properties = new PHPExcel_DocumentProperties();
     // Create document security
     $this->_security = new PHPExcel_DocumentSecurity();
     // Set named ranges
     $this->_namedRanges = array();
     // Create the cellXf supervisor
     $this->_cellXfSupervisor = new PHPExcel_Style(true);
     $this->_cellXfSupervisor->bindParent($this);
     // Create the default style
     $this->addCellXf(new PHPExcel_Style());
     $this->addCellStyleXf(new PHPExcel_Style());
 }
示例#2
0
 /**
  * Create a new PHPExcel with one Worksheet
  */
 public function __construct()
 {
     // Initialise worksheet collection and add one worksheet
     $this->_workSheetCollection = array();
     $this->_workSheetCollection[] = new PHPExcel_Worksheet($this);
     $this->_activeSheetIndex = 0;
     // Create document properties
     $this->_properties = new PHPExcel_DocumentProperties();
     // Create document security
     $this->_security = new PHPExcel_DocumentSecurity();
     // Set named ranges
     $this->_namedRanges = array();
     // Create the cellXf supervisor
     $this->_cellXfSupervisor = new PHPExcel_Style(true);
     $this->_cellXfSupervisor->bindParent($this);
     // Create the default style
     $this->addCellXf(new PHPExcel_Style());
     $this->addCellStyleXf(new PHPExcel_Style());
 }
示例#3
0
 /**
  * Create a new PHPExcel with one Worksheet
  */
 public function __construct()
 {
     $this->uniqueID = uniqid();
     $this->calculationEngine = PHPExcel_Calculation::getInstance($this);
     // Initialise worksheet collection and add one worksheet
     $this->workSheetCollection = array();
     $this->workSheetCollection[] = new PHPExcel_Worksheet($this);
     $this->activeSheetIndex = 0;
     // Create document properties
     $this->properties = new PHPExcel_DocumentProperties();
     // Create document security
     $this->security = new PHPExcel_DocumentSecurity();
     // Set named ranges
     $this->namedRanges = array();
     // Create the cellXf supervisor
     $this->cellXfSupervisor = new PHPExcel_Style(true);
     $this->cellXfSupervisor->bindParent($this);
     // Create the default style
     $this->addCellXf(new PHPExcel_Style());
     $this->addCellStyleXf(new PHPExcel_Style());
 }