_valign = null; $this->_textDirection = null; $this->_bgColor = null; $this->_borderTopSize = null; $this->_borderTopColor = null; $this->_borderLeftSize = null; $this->_borderLeftColor = null; $this->_borderRightSize = null; $this->_borderRightColor = null; $this->_borderBottomSize = null; $this->_borderBottomColor = null; $this->_defaultBorderColor = '000000'; } /** * Set style value * * @var string $key * @var mixed $value */ public function setStyleValue($key, $value) { if ($key == '_borderSize') { $this->setBorderSize($value); } elseif ($key == '_borderColor') { $this->setBorderColor($value); } else { $this->$key = $value; } } public function getVAlign() { return $this->_valign; } public function setVAlign($pValue = null) { $this->_valign = $pValue; } public function getTextDirection() { return $this->_textDirection; } public function setTextDirection($pValue = null) { $this->_textDirection = $pValue; } public function getBgColor() { return $this->_bgColor; } public function setBgColor($pValue = null) { $this->_bgColor = $pValue; } public function setBorderSize($pValue = null) { $this->_borderTopSize = $pValue; $this->_borderLeftSize = $pValue; $this->_borderRightSize = $pValue; $this->_borderBottomSize = $pValue; } public function getBorderSize() { $t = $this->getBorderTopSize(); $l = $this->getBorderLeftSize(); $r = $this->getBorderRightSize(); $b = $this->getBorderBottomSize(); return array($t, $l, $r, $b); } public function setBorderColor($pValue = null) { $this->_borderTopColor = $pValue; $this->_borderLeftColor = $pValue; $this->_borderRightColor = $pValue; $this->_borderBottomColor = $pValue; } public function getBorderColor() { $t = $this->getBorderTopColor(); $l = $this->getBorderLeftColor(); $r = $this->getBorderRightColor(); $b = $this->getBorderBottomColor(); return array($t, $l, $r, $b); } public function setBorderTopSize($pValue = null) { $this->_borderTopSize = $pValue; } public function getBorderTopSize() { return $this->_borderTopSize; } public function setBorderTopColor($pValue = null) { $this->_borderTopColor = $pValue; } public function getBorderTopColor() { return $this->_borderTopColor; } public function setBorderLeftSize($pValue = null) { $this->_borderLeftSize = $pValue; } public function getBorderLeftSize() { return $this->_borderLeftSize; } public function setBorderLeftColor($pValue = null) { $this->_borderLeftColor = $pValue; } public function getBorderLeftColor() { return $this->_borderLeftColor; } public function setBorderRightSize($pValue = null) { $this->_borderRightSize = $pValue; } public function getBorderRightSize() { return $this->_borderRightSize; } public function setBorderRightColor($pValue = null) { $this->_borderRightColor = $pValue; } public function getBorderRightColor() { return $this->_borderRightColor; } public function setBorderBottomSize($pValue = null) { $this->_borderBottomSize = $pValue; } public function getBorderBottomSize() { return $this->_borderBottomSize; } public function setBorderBottomColor($pValue = null) { $this->_borderBottomColor = $pValue; } public function getBorderBottomColor() { return $this->_borderBottomColor; } public function getDefaultBorderColor() { return $this->_defaultBorderColor; } public function setGridSpan($pValue = null) { $this->_gridSpan = $pValue; } public function getGridSpan() { return $this->_gridSpan; } public function setVMerge($pValue = null) { $this->_vMerge = $pValue; } public function getVMerge() { return $this->_vMerge; } }