Model/Tag.php
changeset 5 45378793512a
parent 2 13f43f53d0ba
child 8 7d2fb5d7c9ff
equal deleted inserted replaced
4:e63ac93fdbde 5:45378793512a
   216      */
   216      */
   217     public function getUrlStatus()
   217     public function getUrlStatus()
   218     {
   218     {
   219         return $this->urlStatus;
   219         return $this->urlStatus;
   220     }
   220     }
       
   221     
       
   222     /**
       
   223     * Get UrlStatusText
       
   224     *
       
   225     * @return string
       
   226     */
       
   227     public function getUrlStatusText()
       
   228     {
       
   229         switch ($this->getUrlStatus()) {
       
   230             case 0:
       
   231                 return "null_result";
       
   232             case 1:
       
   233                 return "redirection";
       
   234             case 2:
       
   235                 return "homonyme";
       
   236             case 3:
       
   237                 return "match";
       
   238         }
       
   239     }
       
   240     
   221 
   241 
   222     /**
   242     /**
   223      * Set dbpediaUri
   243      * Set dbpediaUri
   224      *
   244      *
   225      * @param string $dbpediaUri
   245      * @param string $dbpediaUri
   257     public function getPopularity()
   277     public function getPopularity()
   258     {
   278     {
   259         return $this->popularity;
   279         return $this->popularity;
   260     }
   280     }
   261 
   281 
   262 
   282     /**
       
   283     * Set category
       
   284     *
       
   285     * @param object $category
       
   286     */
       
   287     public function setCategory($category)
       
   288     {
       
   289         $this->category = $category;
       
   290     }
       
   291     
       
   292     /**
       
   293      * Get category
       
   294      *
       
   295      * @return object
       
   296      */
       
   297     function getCategory()
       
   298     {
       
   299         return $this->category;
       
   300     }
       
   301     
   263      
   302      
   264  }
   303  }