original_string: public function generateUrl(NewsCategoryModel $category, PageModel $page, $absolute = false)
      {
          $page->loadDetails();
  
          $params = '/'.$this->getParameterName($page->rootId).'/'.$this->getCategoryAlias($category, $page);
  
          return $absolute ? $page->getAbsoluteUrl($params) : $page->getFrontendUrl($params);
      }
code: public function generateUrl(NewsCategoryModel $category, PageModel $page, $absolute = false)
      {
          $page->loadDetails();
  
          $params = '/'.$this->getParameterName($page->rootId).'/'.$this->getCategoryAlias($category, $page);
  
          return $absolute ? $page->getAbsoluteUrl($params) : $page->getFrontendUrl($params);
      }
code_tokens: public function generateUrl ( NewsCategoryModel $ category , PageModel $ page , $ absolute = false ) { $ page -> loadDetails ( ) ; $ params = '/' . $ this -> getParameterName ( $ page -> rootId ) . '/' . $ this -> getCategoryAlias ( $ category , $ page ) ; return $ absolute ? $ page -> getAbsoluteUrl ( $ params ) : $ page -> getFrontendUrl ( $ params ) ; }
docstring: Generate the category URL.
  
  @param NewsCategoryModel $category
  @param PageModel         $page
  @param bool              $absolute
  
  @return string
docstring_tokens: Generate the category URL .