protected function getAddress(Document $document, $sm) 
	{
		$firstCategory = null === $this->category ? 
			$this->getCategory($document) : $this->category;
		
		$key = null === $this->hashId ? 
			$this->getHashId($document, $sm) : $this->hashId;
		
		$slug = null === $this->slug ? 
			$this->getSlug($document) : $this->slug;
		
		$url = $sm->get('ControllerPluginManager')->get('Url');
		return $url->fromRoute('DocumentRegexClassified/title/id', array(
					'category' => $firstCategory,
					'title' => $slug,
					'id' => $key
				), array('force_canonical' => true));
	}
protected function getAddress(Document $document, $sm) 
	{
		$firstCategory = null === $this->category ? 
			$this->getCategory($document) : $this->category;
		
		$key = null === $this->hashId ? 
			$this->getHashId($document, $sm) : $this->hashId;
		
		$slug = null === $this->slug ? 
			$this->getSlug($document) : $this->slug;
		
		$url = $sm->get('ControllerPluginManager')->get('Url');
		return $url->fromRoute('DocumentRegexClassified/title/id', array(
					'category' => $firstCategory,
					'title' => $slug,
					'id' => $key
				), array('force_canonical' => true));
	}
protected function getAddress ( Document $ document , $ sm ) { $ firstCategory = null === $ this -> category ? $ this -> getCategory ( $ document ) : $ this -> category ; $ key = null === $ this -> hashId ? $ this -> getHashId ( $ document , $ sm ) : $ this -> hashId ; $ slug = null === $ this -> slug ? $ this -> getSlug ( $ document ) : $ this -> slug ; $ url = $ sm -> get ( 'ControllerPluginManager' ) -> get ( 'Url' ) ; return $ url -> fromRoute ( 'DocumentRegexClassified/title/id' , array ( 'category' => $ firstCategory , 'title' => $ slug , 'id' => $ key ) , array ( 'force_canonical' => true ) ) ; }
Get the classified full adress

@param Document $document
@return string
Get the classified full adress