131 public function __construct($isSupervisor = FALSE, $isConditional = FALSE)
134 parent::__construct($isSupervisor);
154 $this->_left->bindParent($this,
'_left');
155 $this->_right->bindParent($this,
'_right');
156 $this->_top->bindParent($this,
'_top');
157 $this->_bottom->bindParent($this,
'_bottom');
158 $this->_diagonal->bindParent($this,
'_diagonal');
159 $this->_allBorders->bindParent($this,
'_allBorders');
160 $this->_outline->bindParent($this,
'_outline');
161 $this->_inside->bindParent($this,
'_inside');
162 $this->_vertical->bindParent($this,
'_vertical');
163 $this->_horizontal->bindParent($this,
'_horizontal');
175 return $this->_parent->getSharedComponent()->getBorders();
186 return array(
'borders' => $array);
228 if (is_array($pStyles)) {
229 if ($this->_isSupervisor) {
232 if (array_key_exists(
'left', $pStyles)) {
233 $this->
getLeft()->applyFromArray($pStyles[
'left']);
235 if (array_key_exists(
'right', $pStyles)) {
236 $this->
getRight()->applyFromArray($pStyles[
'right']);
238 if (array_key_exists(
'top', $pStyles)) {
239 $this->
getTop()->applyFromArray($pStyles[
'top']);
241 if (array_key_exists(
'bottom', $pStyles)) {
242 $this->
getBottom()->applyFromArray($pStyles[
'bottom']);
244 if (array_key_exists(
'diagonal', $pStyles)) {
245 $this->
getDiagonal()->applyFromArray($pStyles[
'diagonal']);
247 if (array_key_exists(
'diagonaldirection', $pStyles)) {
250 if (array_key_exists(
'allborders', $pStyles)) {
251 $this->
getLeft()->applyFromArray($pStyles[
'allborders']);
252 $this->
getRight()->applyFromArray($pStyles[
'allborders']);
253 $this->
getTop()->applyFromArray($pStyles[
'allborders']);
254 $this->
getBottom()->applyFromArray($pStyles[
'allborders']);
315 if (!$this->_isSupervisor) {
328 if (!$this->_isSupervisor) {
341 if (!$this->_isSupervisor) {
354 if (!$this->_isSupervisor) {
367 if (!$this->_isSupervisor) {
379 if ($this->_isSupervisor) {
395 if ($this->_isSupervisor) {
399 $this->_diagonalDirection = $pValue;
410 if ($this->_isSupervisor) {
getOutline()
Get Outline (pseudo-border).
getDiagonal()
Get Diagonal.
getInside()
Get Inside (pseudo-border).
getAllBorders()
Get AllBorders (pseudo-border).
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
getHashCode()
Get hash code.
__construct($isSupervisor=FALSE, $isConditional=FALSE)
Create a new PHPExcel_Style_Borders.
getVertical()
Get Vertical (pseudo-border).
getSharedComponent()
Get the shared style component for the currently active cell in currently active sheet.
getHorizontal()
Get Horizontal (pseudo-border).
getStyleArray($array)
Build style array from subcomponents.
applyFromArray($pStyles=null)
Apply styles from array.
setDiagonalDirection($pValue=PHPExcel_Style_Borders::DIAGONAL_NONE)
Set DiagonalDirection.
Create styles array
The data for the language used.
getActiveSheet()
Get the currently active sheet.
getDiagonalDirection()
Get DiagonalDirection.