Class MasterItemType

Description

Holds methods for receiving all information about Itemtypes.

  • version: $Id: MasterItemType.php,v 1.9 2006/11/26 22:04:09 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License


			
Direct descendents
Class Description
Itemtype This Base class is represents an Itemtype within the CMS and holds methods to receive several information about Items of this Type.
Method Summary
MasterItemType MasterItemType ()
Item getClassForItemType ( $itemtype,  $itemid, [ $treetype = ITEM_LOAD_FULL], [ $languageID = ''])
String getClassNameForItemType ( $itemtype)
String getCommandForItemType ( $itemtype)
String getDirectoryForItemType ( $itemtype)
int getItemTypeForCommand ( $cmd)
String getSelectColumns ( $itemtype, [ $treetype = ITEM_LOAD_FULL])
Methods
Constructor MasterItemType (line 40)

Empty Constructor.

MasterItemType MasterItemType ()
countItemtypes (line 140)

Returns how many Itemtypes are known by the System.

  • return: the number of items known by the System
int countItemtypes ()
getClassForItemType (line 108)

Returns a new instance of the Class for the given Itentype ID.

  • return: a new instance (subclass of Item) for the given Itemtype ID
Item getClassForItemType ( $itemtype,  $itemid, [ $treetype = ITEM_LOAD_FULL], [ $languageID = ''])
  • $itemtype
  • $itemid
  • $treetype
  • $languageID
getClassNameForItemType (line 99)

Returns the Classname for the given Itentype ID.

  • return: the Classname for the Itemtype ID
String getClassNameForItemType ( $itemtype)
  • $itemtype
getCommandForItemType (line 55)

Return the Command for the given Itemtype ID.

  • return: the Command
String getCommandForItemType ( $itemtype)
  • $itemtype
getDirectoryForItemType (line 46)

Return the Directory for the given Itemtype ID.

  • return: the Directory Name
String getDirectoryForItemType ( $itemtype)
  • $itemtype
getItemTypeForCommand (line 85)

Get the Itemtype ID for the given Command (or null).

  • return: the Itemtype ID or null
int getItemTypeForCommand ( $cmd)
  • $cmd
getSelectColumns (line 67)

Returns the Select Columns to be used for Item- and Treeselects.

These Columns are comma separated and can be directly pasted into a SQL "SELECT ... FROM ..." statement.

  • return: the Columns to be selected as Comma separated List
String getSelectColumns ( $itemtype, [ $treetype = ITEM_LOAD_FULL])
  • $itemtype
  • $treetype

Documentation generated by phpDocumentor 1.3.1