Class: CategoryTreeWalker

Source Location: /CORE/system/classes/category/CategoryTreeWalker.php

Class CategoryTreeWalker

Class Overview

The CategoryTreeWalker fetches all Children of a Category.

Located in /CORE/system/classes/category/CategoryTreeWalker.php [line 37]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: CategoryTreeWalker.php,v 1.7 2007/01/08 22:51:42 kpapst Exp $
Copyright:  Copyright (C) 2002-2006 Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
CategoryTreeWalker   CategoryTreeWalker()   Create an instance for a known Category ID.
int   count()   Counts the amount of Results.
Category   next()   Return the next Category.

[ Top ]
Methods
Constructor CategoryTreeWalker  [line 48]

  CategoryTreeWalker CategoryTreeWalker( $id  )

Create an instance for a known Category ID.

Parameters:
   $id: 


[ Top ]
count  [line 61]

  int count( )

Counts the amount of Results.


API Tags:
Return:  the amount of children for this Category


[ Top ]
next  [line 69]

  Category next( )

Return the next Category.


API Tags:
Return:  the next children


[ Top ]