Class: ItemCategoryEnumeration

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

Class ItemCategoryEnumeration

Class Overview

The ItemCategoryEnumeration fetches all Categories for one Item.

Located in /CORE/system/classes/category/ItemCategoryEnumeration.php [line 38]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: ItemCategoryEnumeration.php,v 1.9 2008/02/23 19:28:45 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
ItemCategoryEnumeration   ItemCategoryEnumeration()   Gets a Category SearchResult.
int   count()   Counts the amount of Categories that ar linked to the Item.
boolean   hasNext()   Returns whether there is at least one more Category.
Category   next()   Gets the next Category.

[ Top ]
Methods
Constructor ItemCategoryEnumeration  [line 56]

  ItemCategoryEnumeration ItemCategoryEnumeration( int $itemtypeid, int $itemid  )

Gets a Category SearchResult.

Parameters:
int   $itemtypeid:  the Itemtype ID
int   $itemid:  the ItemID


[ Top ]
count  [line 70]

  int count( )

Counts the amount of Categories that ar linked to the Item.


API Tags:
Return:  the amount of linked Categories


[ Top ]
hasNext  [line 87]

  boolean hasNext( )

Returns whether there is at least one more Category.


API Tags:
Return:  if there is at least one more Category


[ Top ]
next  [line 78]

  Category next( )

Gets the next Category.


API Tags:
Return:  the next Category


[ Top ]