diff -r e63ac93fdbde -r 45378793512a Model/Tag.php --- a/Model/Tag.php Mon Oct 17 17:17:14 2011 +0200 +++ b/Model/Tag.php Tue Oct 18 10:32:30 2011 +0200 @@ -218,6 +218,26 @@ { return $this->urlStatus; } + + /** + * Get UrlStatusText + * + * @return string + */ + public function getUrlStatusText() + { + switch ($this->getUrlStatus()) { + case 0: + return "null_result"; + case 1: + return "redirection"; + case 2: + return "homonyme"; + case 3: + return "match"; + } + } + /** * Set dbpediaUri @@ -259,6 +279,25 @@ return $this->popularity; } - + /** + * Set category + * + * @param object $category + */ + public function setCategory($category) + { + $this->category = $category; + } + + /** + * Get category + * + * @return object + */ + function getCategory() + { + return $this->category; + } + } \ No newline at end of file