110 $this->diagonalDirection = self::DIAGONAL_NONE;
115 $this->allBorders =
new Border(
true);
116 $this->outline =
new Border(
true);
117 $this->inside =
new Border(
true);
118 $this->vertical =
new Border(
true);
119 $this->horizontal =
new Border(
true);
122 $this->
left->bindParent($this,
'left');
123 $this->right->bindParent($this,
'right');
124 $this->top->bindParent($this,
'top');
125 $this->bottom->bindParent($this,
'bottom');
126 $this->diagonal->bindParent($this,
'diagonal');
127 $this->allBorders->bindParent($this,
'allBorders');
128 $this->outline->bindParent($this,
'outline');
129 $this->inside->bindParent($this,
'inside');
130 $this->vertical->bindParent($this,
'vertical');
131 $this->horizontal->bindParent($this,
'horizontal');
143 return $this->
parent->getSharedComponent()->getBorders();
155 return [
'borders' => $array];
199 if ($this->isSupervisor) {
202 if (isset($pStyles[
'left'])) {
203 $this->
getLeft()->applyFromArray($pStyles[
'left']);
205 if (isset($pStyles[
'right'])) {
206 $this->
getRight()->applyFromArray($pStyles[
'right']);
208 if (isset($pStyles[
'top'])) {
209 $this->
getTop()->applyFromArray($pStyles[
'top']);
211 if (isset($pStyles[
'bottom'])) {
212 $this->
getBottom()->applyFromArray($pStyles[
'bottom']);
214 if (isset($pStyles[
'diagonal'])) {
215 $this->
getDiagonal()->applyFromArray($pStyles[
'diagonal']);
217 if (isset($pStyles[
'diagonalDirection'])) {
220 if (isset($pStyles[
'allBorders'])) {
221 $this->
getLeft()->applyFromArray($pStyles[
'allBorders']);
222 $this->
getRight()->applyFromArray($pStyles[
'allBorders']);
223 $this->
getTop()->applyFromArray($pStyles[
'allBorders']);
224 $this->
getBottom()->applyFromArray($pStyles[
'allBorders']);
288 if (!$this->isSupervisor) {
302 if (!$this->isSupervisor) {
316 if (!$this->isSupervisor) {
330 if (!$this->isSupervisor) {
344 if (!$this->isSupervisor) {
358 if ($this->isSupervisor) {
375 $pValue = self::DIAGONAL_NONE;
377 if ($this->isSupervisor) {
378 $styleArray = $this->
getStyleArray([
'diagonalDirection' => $pValue]);
381 $this->diagonalDirection = $pValue;
394 if ($this->isSupervisor) {
419 return $exportedArray;
getStyleArray($array)
Build style array from subcomponents.
getDiagonalDirection()
Get DiagonalDirection.
getOutline()
Get Outline (pseudo-border).
getDiagonal()
Get Diagonal.
getSharedComponent()
Get the shared style component for the currently active cell in currently active sheet.
getInside()
Get Inside (pseudo-border).
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
getVertical()
Get Vertical (pseudo-border).
setDiagonalDirection($pValue)
Set DiagonalDirection.
getAllBorders()
Get AllBorders (pseudo-border).
getActiveSheet()
Get the currently active sheet.
__construct($isSupervisor=false)
Create a new Borders.
getHashCode()
Get hash code.
exportArray2(array &$exportedArray, string $index, $objOrValue)
Populate array from exportArray1.
getHorizontal()
Get Horizontal (pseudo-border).
applyFromArray(array $pStyles)
Apply styles from array.