Append a link

@since   1.0
@param   string $href Link path.
@param   string $rel Rel attribute.
@param   string $type Type attribute.
@param   string $media Media attribute.
@return  $this
767738
public function append($href, $rel = null, $type = null, $media = null)
    {
        self::$linkList->append(array($sHref, $sRel, $sType, $sMedia));
        return $this;
    }
267716
public function add(string $file, string $type)
    {
        $url = self::ADD.$this->access_token.'&'.http_build_query([
                'type' => $type,
            ]);
        $this->curl->setOpt(CURLOPT_SAFE_UPLOAD, true);
        $data = $this->curl->post($url, [
            'media' => new \CURLFile($file),
        ]);

        return Response::json($data);
    }
802999
public function prependAlternate($href, $type, $title, $media = null, $conditional = '')
    {
        return $this->_setAlternate($href, $type, $title, $media, false, $conditional);
    }
1284448
public function prepend($href, $rel = null, $type = null, $media = null)
    {
        self::$linkList->prepend(array($href, $rel, $type, $media));
        return $this;
    }
45141
public function appendLink($key, $href, array $meta=[]) {
		$this->ensureLinksObject();
		$this->links->append($key, $href, $meta);
	}
146800
def link_href(self, rel):
        """"""
        link = self.link(rel)
        if (link is not None):
            link = link['href']
        return(link)
418383
public function addLink(string $rel, $uri): Link
    {
        return $this->links->add($rel, $uri);
    }
1210833
public function addLink(
        $linkOrRel,
        string $href = null,
        $classes = [],
        string $title = null,
        string $type = null
    ) : self {
        $link = $linkOrRel;

        if (!$linkOrRel instanceof Link) {
            $rels    = is_array($linkOrRel) ? $linkOrRel : [$linkOrRel];
            $classes = is_array($classes) ? $classes : [$classes];
            $link    = new Link($rels, $href, $classes, $title, $type);
        }

        $this->links[] = $link;

        return $this;
    }
724617
public function appendStylesheet($href, $media = null, $conditional = '')
    {
        return $this->_setStylesheet($href, $media, false, $conditional);
    }
73237
private function loadAssetsFromDir($href, $attr, $title, $type = 'style')
    {
        $path = str_replace('\\', '/', $href);
        $assets = glob($path.'*');

        foreach ($assets as $src) {
            ($type == 'style') ? $this->setStyle($attr, $src, $title) : $this->setScript($src, $attr);
        }
    }
732039
private function setLink($type, $title, $href)
    {
        $this->links[$type] = [
            'rel' => $type,
            'title' => $title,
            'href' => $href
        ];
    }
195803
public function createLink($label, $href = null)
    {
        $link = new Link($label, $href);

        if ( ! $this->links instanceof ArrayIterator) {
            $this->links = new ArrayIterator();
        }

        $this->links->push($link);
    }
584975
public function addMemoryImage($link, $style = null) {
		$memoryImage = new PHPWord_Section_MemoryImage($link, $style);
		if(!is_null($memoryImage->getSource())) {
			if($this->_insideOf == 'section') {
				$rID = PHPWord_Media::addSectionMediaElement($link, 'image', $memoryImage);
			} elseif($this->_insideOf == 'header') {
				$rID = PHPWord_Media::addHeaderMediaElement($this->_pCount, $link, $memoryImage);
			} elseif($this->_insideOf == 'footer') {
				$rID = PHPWord_Media::addFooterMediaElement($this->_pCount, $link, $memoryImage);
			}
			$memoryImage->setRelationId($rID);
			
			$this->_elementCollection[] = $memoryImage;
			return $memoryImage;
		} else {
			trigger_error('Unsupported image type.');
		}
	}
1313089
def link_add(self, rel, href, **atts):
        
        self.link_set(rel, href, allow_duplicates=True, **atts)
1191305
protected function _append($type, $path, $options, $rel = null) {
		foreach ((array) $path as $i) {
			$this->{$type}[$i] = compact('options', 'rel');
		}
	}
39866
public function &createAction(string $type, string $text, string $href = '', bool $ajax = false, string $confirm = ''): Action
    {
        $action = new Action();

        $action->setType($type);
        $action->setText($text);

        if (!empty($href)) {
            $action->setHref($href);
        }

        $action->setAjax($ajax);

        if (!empty($confirm)) {
            $action->setConfirm('confirm');
        }

        $this->addAction($action);

        return $action;
    }
862355
public static function create($url, string $mediaType = self::TYPE_IMAGE): self
    {
        return new self($url, $mediaType);
    }