applications/vanilla/models/class.categorymodel.php
public function GetDescendantCountByCode($Code) {
      $Category = $this->GetByCode($Code);
      if ($Category)
         return round(($Category->TreeRight - $Category->TreeLeft - 1) / 2);

      return 0;
   }
public function GetDescendantCountByCode($Code) {
      $Category = $this->GetByCode($Code);
      if ($Category)
         return round(($Category->TreeRight - $Category->TreeLeft - 1) / 2);

      return 0;
   }
public function GetDescendantCountByCode ( $ Code ) { $ Category = $ this -> GetByCode ( $ Code ) ; if ( $ Category ) return round ( ( $ Category -> TreeRight - $ Category -> TreeLeft - 1 ) / 2 ) ; return 0 ; }
Return the number of descendants for a specific category.
Return the number of descendants for a specific category .