コード例 #1
0
ファイル: PHPExcel.php プロジェクト: bestgoodz/toko-baju
 /**
  * Create a new PHPExcel with one Worksheet
  */
 public function __construct()
 {
     // Initialise worksheet collection and add one worksheet
     $this->_workSheetCollection = array();
     $this->_workSheetCollection[] = new Worksheet($this);
     $this->_activeSheetIndex = 0;
     // Create document properties
     $this->_properties = new DocumentProperties();
     // Create document security
     $this->_security = new DocumentSecurity();
     // Set named ranges
     $this->_namedRanges = array();
     // Create the cellXf supervisor
     $this->_cellXfSupervisor = new Style(true);
     $this->_cellXfSupervisor->bindParent($this);
     // Create the default style
     $this->addCellXf(new Style());
     $this->addCellStyleXf(new Style());
 }
コード例 #2
0
 /**
  * Create a new PHPExcel with one Worksheet
  */
 public function __construct()
 {
     $this->uniqueID = uniqid();
     $this->calculationEngine = new Calculation($this);
     // Initialise worksheet collection and add one worksheet
     $this->workSheetCollection = array();
     $this->workSheetCollection[] = new Worksheet($this);
     $this->activeSheetIndex = 0;
     // Create document properties
     $this->properties = new Document\Properties();
     // Create document security
     $this->security = new Document\Security();
     // Set named ranges
     $this->namedRanges = array();
     // Create the cellXf supervisor
     $this->cellXfSupervisor = new Style(true);
     $this->cellXfSupervisor->bindParent($this);
     // Create the default style
     $this->addCellXf(new Style());
     $this->addCellStyleXf(new Style());
 }