当前位置: 首页>>代码示例>>PHP>>正文


PHP PHPExcel_Style::bindParent方法代码示例

本文整理汇总了PHP中PHPExcel_Style::bindParent方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPExcel_Style::bindParent方法的具体用法?PHP PHPExcel_Style::bindParent怎么用?PHP PHPExcel_Style::bindParent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHPExcel_Style的用法示例。


在下文中一共展示了PHPExcel_Style::bindParent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * 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());
 }
开发者ID:ZhaoweiTan,项目名称:OnlineJudge,代码行数:29,代码来源:Phpexcel.php

示例2: __construct

 /**
  * 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());
 }
开发者ID:echoOly,项目名称:php_base,代码行数:22,代码来源:PHPExcel.php

示例3: __construct

 /**
  * 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());
 }
开发者ID:smallyin,项目名称:ci-phpexcel,代码行数:24,代码来源:phpexcel.php


注:本文中的PHPExcel_Style::bindParent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。