本文整理汇总了PHP中Style::bindParent方法的典型用法代码示例。如果您正苦于以下问题:PHP Style::bindParent方法的具体用法?PHP Style::bindParent怎么用?PHP Style::bindParent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Style
的用法示例。
在下文中一共展示了Style::bindParent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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: __construct
/**
* 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());
}