Class CategoryItemEnumeration

Description

With the CategoryItemEnumeration you get all Item IDs of a known Itemtype that are linked to a known Category.

Example ========= Receive all Menus for the Category 2: $catItemEnum = new CategoryItemEnumeration(_BIGACE_ITEM_MENU, 2); for($i=0;$i<$catItemEnum->count();$i++) { $temp = $catItemEnum->next(); $temp_menu = new Menu($temp['itemid']); }

  • version: $Id: CategoryItemEnumeration.php,v 1.7 2007/01/08 21:47:20 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License


			
Method Summary
CategoryItemEnumeration CategoryItemEnumeration (int $itemtypeid, int $categoryid)
int count ()
boolean hasNext ()
array next ()
Methods
Constructor CategoryItemEnumeration (line 63)

Instatiate a CategoryItemEnumeration.

CategoryItemEnumeration CategoryItemEnumeration (int $itemtypeid, int $categoryid)
  • int $itemtypeid: the Itemtype ID
  • int $categoryid: the CategoryID
count (line 78)

Get the amount of Results.

  • return: the amount of Items linked to the given Category
int count ()
hasNext (line 97)

Returns wheter there is one more Search result or not.

  • return: if there is at least one more serach result
boolean hasNext ()
next (line 88)

Gets the next Result array.

The Array has the usable Index "itemid".

  • return: the next result
array next ()

Documentation generated by phpDocumentor 1.3.1