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 * * @param string $key * @param mixed $value */ public function setStyleValue($key, $value) { if (substr($key, 0, 1) == '_') { $key = substr($key, 1); } if ($key == 'borderSize') { $this->setBorderSize($value); } elseif ($key == 'borderColor') { $this->setBorderColor($value); } else { $this->$key = $value; } } /** * Get vertical align */ public function getVAlign() { return $this->valign; } /** * Set vertical align * * @param string $pValue */ public function setVAlign($pValue = null) { $this->valign = $pValue; } /** * Get text direction */ public function getTextDirection() { return $this->textDirection; } /** * Set text direction * * @param string $pValue */ public function setTextDirection($pValue = null) { $this->textDirection = $pValue; } /** * Get background color */ public function getBgColor() { return $this->bgColor; } /** * Set background color * * @param string $pValue */ public function setBgColor($pValue = null) { $this->bgColor = $pValue; } /** * Set border size * * @param int $pValue */ public function setBorderSize($pValue = null) { $this->borderTopSize = $pValue; $this->borderLeftSize = $pValue; $this->borderRightSize = $pValue; $this->borderBottomSize = $pValue; } /** * Get border size */ public function getBorderSize() { $t = $this->getBorderTopSize(); $l = $this->getBorderLeftSize(); $r = $this->getBorderRightSize(); $b = $this->getBorderBottomSize(); return array($t, $l, $r, $b); } /** * Set border color * * @param string $pValue */ public function setBorderColor($pValue = null) { $this->borderTopColor = $pValue; $this->borderLeftColor = $pValue; $this->borderRightColor = $pValue; $this->borderBottomColor = $pValue; } /** * Get border color */ public function getBorderColor() { $t = $this->getBorderTopColor(); $l = $this->getBorderLeftColor(); $r = $this->getBorderRightColor(); $b = $this->getBorderBottomColor(); return array($t, $l, $r, $b); } /** * Set border top size * * @param int $pValue */ public function setBorderTopSize($pValue = null) { $this->borderTopSize = $pValue; } /** * Get border top size */ public function getBorderTopSize() { return $this->borderTopSize; } /** * Set border top color * * @param string $pValue */ public function setBorderTopColor($pValue = null) { $this->borderTopColor = $pValue; } /** * Get border top color */ public function getBorderTopColor() { return $this->borderTopColor; } /** * Set border left size * * @param int $pValue */ public function setBorderLeftSize($pValue = null) { $this->borderLeftSize = $pValue; } /** * Get border left size */ public function getBorderLeftSize() { return $this->borderLeftSize; } /** * Set border left color * * @param string $pValue */ public function setBorderLeftColor($pValue = null) { $this->borderLeftColor = $pValue; } /** * Get border left color */ public function getBorderLeftColor() { return $this->borderLeftColor; } /** * Set border right size * * @param int $pValue */ public function setBorderRightSize($pValue = null) { $this->borderRightSize = $pValue; } /** * Get border right size */ public function getBorderRightSize() { return $this->borderRightSize; } /** * Set border right color * * @param string $pValue */ public function setBorderRightColor($pValue = null) { $this->borderRightColor = $pValue; } /** * Get border right color */ public function getBorderRightColor() { return $this->borderRightColor; } /** * Set border bottom size * * @param int $pValue */ public function setBorderBottomSize($pValue = null) { $this->borderBottomSize = $pValue; } /** * Get border bottom size */ public function getBorderBottomSize() { return $this->borderBottomSize; } /** * Set border bottom color * * @param string $pValue */ public function setBorderBottomColor($pValue = null) { $this->borderBottomColor = $pValue; } /** * Get border bottom color */ public function getBorderBottomColor() { return $this->borderBottomColor; } /** * Get default border color */ public function getDefaultBorderColor() { return $this->defaultBorderColor; } /** * Set grid span (colspan) * * @param int $pValue */ public function setGridSpan($pValue = null) { $this->gridSpan = $pValue; } /** * Get grid span (colspan) */ public function getGridSpan() { return $this->gridSpan; } /** * Set vertical merge (rowspan) * * @param string $pValue */ public function setVMerge($pValue = null) { $this->vMerge = $pValue; } /** * Get vertical merge (rowspan) */ public function getVMerge() { return $this->vMerge; } }