src/UI/HTML/PageFrame.php
public function setCanonicalLink( $url )
	{
		foreach( $this->links as $nr => $link )
			if( $link['rel'] === 'canonical' )
				unset( $this->links[$nr] );
		$this->addLink( $url, 'canonical' );
	}
public function setCanonicalLink( $url )
	{
		foreach( $this->links as $nr => $link )
			if( $link['rel'] === 'canonical' )
				unset( $this->links[$nr] );
		$this->addLink( $url, 'canonical' );
	}
public function setCanonicalLink ( $ url ) { foreach ( $ this -> links as $ nr => $ link ) if ( $ link [ 'rel' ] === 'canonical' ) unset ( $ this -> links [ $ nr ] ) ; $ this -> addLink ( $ url , 'canonical' ) ; }
Sets canonical link.
Removes link having been set before.
@access		public
@param		string		$url			URL of canonical link
@return		void
Sets canonical link . Removes link having been set before .