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


PHP PHPExcel_Style_Border::bindParent方法代码示例

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


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

示例1: __construct

 /**
  * Create a new PHPExcel_Style_Borders
  */
 public function __construct($isSupervisor = false)
 {
     // Supervisor?
     $this->_isSupervisor = $isSupervisor;
     // Initialise values
     $this->_left = new PHPExcel_Style_Border($isSupervisor);
     $this->_right = new PHPExcel_Style_Border($isSupervisor);
     $this->_top = new PHPExcel_Style_Border($isSupervisor);
     $this->_bottom = new PHPExcel_Style_Border($isSupervisor);
     $this->_diagonal = new PHPExcel_Style_Border($isSupervisor);
     $this->_diagonalDirection = PHPExcel_Style_Borders::DIAGONAL_NONE;
     // Specially for supervisor
     if ($isSupervisor) {
         // Initialize pseudo-borders
         $this->_allBorders = new PHPExcel_Style_Border(true);
         $this->_outline = new PHPExcel_Style_Border(true);
         $this->_inside = new PHPExcel_Style_Border(true);
         $this->_vertical = new PHPExcel_Style_Border(true);
         $this->_horizontal = new PHPExcel_Style_Border(true);
         // bind parent if we are a supervisor
         $this->_left->bindParent($this, '_left');
         $this->_right->bindParent($this, '_right');
         $this->_top->bindParent($this, '_top');
         $this->_bottom->bindParent($this, '_bottom');
         $this->_diagonal->bindParent($this, '_diagonal');
         $this->_allBorders->bindParent($this, '_allBorders');
         $this->_outline->bindParent($this, '_outline');
         $this->_inside->bindParent($this, '_inside');
         $this->_vertical->bindParent($this, '_vertical');
         $this->_horizontal->bindParent($this, '_horizontal');
     }
 }
开发者ID:hoanglannet,项目名称:copar,代码行数:35,代码来源:Borders.php

示例2: __construct

 /**
  * Create a new PHPExcel_Style_Borders
  *
  * @param    boolean    $isSupervisor    Flag indicating if this is a supervisor or not
  *                                    Leave this value at default unless you understand exactly what
  *                                        its ramifications are
  * @param    boolean    $isConditional    Flag indicating if this is a conditional style or not
  *                                    Leave this value at default unless you understand exactly what
  *                                        its ramifications are
  */
 public function __construct($isSupervisor = false, $isConditional = false)
 {
     // Supervisor?
     parent::__construct($isSupervisor);
     // Initialise values
     $this->left = new PHPExcel_Style_Border($isSupervisor, $isConditional);
     $this->right = new PHPExcel_Style_Border($isSupervisor, $isConditional);
     $this->top = new PHPExcel_Style_Border($isSupervisor, $isConditional);
     $this->bottom = new PHPExcel_Style_Border($isSupervisor, $isConditional);
     $this->diagonal = new PHPExcel_Style_Border($isSupervisor, $isConditional);
     $this->diagonalDirection = PHPExcel_Style_Borders::DIAGONAL_NONE;
     // Specially for supervisor
     if ($isSupervisor) {
         // Initialize pseudo-borders
         $this->allBorders = new PHPExcel_Style_Border(true);
         $this->outline = new PHPExcel_Style_Border(true);
         $this->inside = new PHPExcel_Style_Border(true);
         $this->vertical = new PHPExcel_Style_Border(true);
         $this->horizontal = new PHPExcel_Style_Border(true);
         // bind parent if we are a supervisor
         $this->left->bindParent($this, 'left');
         $this->right->bindParent($this, 'right');
         $this->top->bindParent($this, 'top');
         $this->bottom->bindParent($this, 'bottom');
         $this->diagonal->bindParent($this, 'diagonal');
         $this->allBorders->bindParent($this, 'allBorders');
         $this->outline->bindParent($this, 'outline');
         $this->inside->bindParent($this, 'inside');
         $this->vertical->bindParent($this, 'vertical');
         $this->horizontal->bindParent($this, 'horizontal');
     }
 }
开发者ID:alyayazilim,项目名称:E-Ticaret-2015,代码行数:42,代码来源:Borders.php


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