Beispiel #1
0
 /**
  * Add a Link Element
  *
  * @param string $linkSrc
  * @param string $linkName
  * @param mixed $styleFont
  * @return PHPWord_Section_Link
  */
 public function addLink($linkSrc, $linkName = null, $styleFont = null)
 {
     $link = new PHPWord_Section_Link($linkSrc, $linkName, $styleFont);
     $rID = PHPWord_Footnote::addFootnoteLinkElement($linkSrc);
     $link->setRelationId($rID);
     $this->_elementCollection[] = $link;
     return $link;
 }