applications/vanilla/models/class.categorymodel.php
public function GetFullByUrlCode($UrlCode) {
      $Data = (object)self::Categories($UrlCode);

      // Check to see if the user has permission for this category.
      // Get the category IDs.
      $CategoryIDs = DiscussionModel::CategoryPermissions();
      if (is_array($CategoryIDs) && !in_array(GetValue('CategoryID', $Data), $CategoryIDs))
         $Data = FALSE;
      return $Data;
   }
public function GetFullByUrlCode($UrlCode) {
      $Data = (object)self::Categories($UrlCode);

      // Check to see if the user has permission for this category.
      // Get the category IDs.
      $CategoryIDs = DiscussionModel::CategoryPermissions();
      if (is_array($CategoryIDs) && !in_array(GetValue('CategoryID', $Data), $CategoryIDs))
         $Data = FALSE;
      return $Data;
   }
public function GetFullByUrlCode ( $ UrlCode ) { $ Data = ( object ) self :: Categories ( $ UrlCode ) ; // Check to see if the user has permission for this category. // Get the category IDs. $ CategoryIDs = DiscussionModel :: CategoryPermissions ( ) ; if ( is_array ( $ CategoryIDs ) && ! in_array ( GetValue ( 'CategoryID' , $ Data ) , $ CategoryIDs ) ) $ Data = FALSE ; return $ Data ; }
Get full data for a single category by its URL slug. Respects permissions.

@since 2.0.0
@access public

@param string $UrlCode Unique category slug from URL.
@return object SQL results.
Get full data for a single category by its URL slug . Respects permissions .