protected function parseSupraLinkStart(LinkReferencedElement $link)
	{
		$tag = new HtmlTagStart('a');

		$title = ReferencedElementUtils::getLinkReferencedElementTitle(
				$link,
				$this->container->getDoctrine()->getManager(),
				$this->container->getLocaleManager()->getCurrentLocale()
		);

		// @TODO: what if we failed to obtain the URL?
		$url = ReferencedElementUtils::getLinkReferencedElementUrl(
				$link,
				$this->container->getDoctrine()->getManager(),
				$this->container->getLocaleManager()->getCurrentLocale()
		);

		$tag->setAttribute('title', $title)
				->setAttribute('href', $url)
				->setAttribute('class', $link->getClassName())
		;

		$target = $link->getTarget();
		if (! empty($target)) {
			$tag->setAttribute('target', $target);
		}

		switch ($link->getResource()) {
			case LinkReferencedElement::RESOURCE_FILE:
				$tag->setAttribute('target', '_blank');
				break;
		}

		return $tag;
	}
protected function parseSupraLinkStart(LinkReferencedElement $link)
	{
		$tag = new HtmlTagStart('a');

		$title = ReferencedElementUtils::getLinkReferencedElementTitle(
				$link,
				$this->container->getDoctrine()->getManager(),
				$this->container->getLocaleManager()->getCurrentLocale()
		);

		// @TODO: what if we failed to obtain the URL?
		$url = ReferencedElementUtils::getLinkReferencedElementUrl(
				$link,
				$this->container->getDoctrine()->getManager(),
				$this->container->getLocaleManager()->getCurrentLocale()
		);

		$tag->setAttribute('title', $title)
				->setAttribute('href', $url)
				->setAttribute('class', $link->getClassName())
		;

		$target = $link->getTarget();
		if (! empty($target)) {
			$tag->setAttribute('target', $target);
		}

		switch ($link->getResource()) {
			case LinkReferencedElement::RESOURCE_FILE:
				$tag->setAttribute('target', '_blank');
				break;
		}

		return $tag;
	}
protected function parseSupraLinkStart ( LinkReferencedElement $ link ) { $ tag = new HtmlTagStart ( 'a' ) ; $ title = ReferencedElementUtils :: getLinkReferencedElementTitle ( $ link , $ this -> container -> getDoctrine ( ) -> getManager ( ) , $ this -> container -> getLocaleManager ( ) -> getCurrentLocale ( ) ) ; // @TODO: what if we failed to obtain the URL? $ url = ReferencedElementUtils :: getLinkReferencedElementUrl ( $ link , $ this -> container -> getDoctrine ( ) -> getManager ( ) , $ this -> container -> getLocaleManager ( ) -> getCurrentLocale ( ) ) ; $ tag -> setAttribute ( 'title' , $ title ) -> setAttribute ( 'href' , $ url ) -> setAttribute ( 'class' , $ link -> getClassName ( ) ) ; $ target = $ link -> getTarget ( ) ; if ( ! empty ( $ target ) ) { $ tag -> setAttribute ( 'target' , $ target ) ; } switch ( $ link -> getResource ( ) ) { case LinkReferencedElement :: RESOURCE_FILE : $ tag -> setAttribute ( 'target' , '_blank' ) ; break ; } return $ tag ; }
Parse supra.link, return beginning part of referenced link element.

@param LinkReferencedElement $link
@return HtmlTagStart
Parse supra . link return beginning part of referenced link element .