_linkSrc = $linkSrc; $this->_linkName = $linkName; // Set font style if(is_array($styleFont)) { $this->_styleFont = new PHPWord_Style_Font('text'); foreach($styleFont as $key => $value) { if(substr($key, 0, 1) != '_') { $key = '_'.$key; } $this->_styleFont->setStyleValue($key, $value); } } else { $this->_styleFont = $styleFont; } // Set paragraph style if(is_array($styleParagraph)) { $this->_styleParagraph = new PHPWord_Style_Paragraph(); foreach($styleParagraph as $key => $value) { if(substr($key, 0, 1) != '_') { $key = '_'.$key; } $this->_styleParagraph->setStyleValue($key, $value); } } else { $this->_styleParagraph = $styleParagraph; } return $this; } /** * Get Link Relation ID * * @return int */ public function getRelationId() { return $this->_rId; } /** * Set Link Relation ID * * @param int $rId */ public function setRelationId($rId) { $this->_rId = $rId; } /** * Get Link source * * @return string */ public function getLinkSrc() { return $this->_linkSrc; } /** * Get Link name * * @return string */ public function getLinkName() { return $this->_linkName; } /** * Get Text style * * @return PHPWord_Style_Font */ public function getFontStyle() { return $this->_styleFont; } /** * Get Paragraph style * * @return PHPWord_Style_Paragraph */ public function getParagraphStyle() { return $this->_styleParagraph; } } ?>