Class: MasterItemType

Source Location: /CORE/system/classes/item/MasterItemType.php

Class MasterItemType

Class Overview

Holds methods for receiving all information about Itemtypes.

Located in /CORE/system/classes/item/MasterItemType.php [line 36]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: MasterItemType.php,v 1.11 2008/04/22 22:43:05 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Descendants
Child 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.

[ Top ]
Method Summary
static String   getSelectColumns()   Returns the Select Columns to be used for Item- and Treeselects.
MasterItemType   MasterItemType()   Empty Constructor.
int   countItemtypes()   Returns how many Itemtypes are known by the System.
Item   getClassForItemType()   Returns a new instance of the Class for the given Itentype ID.
String   getClassNameForItemType()   Returns the Classname for the given Itentype ID.
String   getCommandForItemType()   Return the Command for the given Itemtype ID.
String   getDirectoryForItemType()   Return the Directory for the given Itemtype ID.
int   getItemTypeForCommand()   Get the Itemtype ID for the given Command (or null).

[ Top ]
Methods
static method getSelectColumns  [line 68]

  static String getSelectColumns( $itemtype, [ $treetype = ITEM_LOAD_FULL]  )

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.

Parameters:
   $itemtype: 
   $treetype: 

API Tags:
Return:  the Columns to be selected as Comma separated List
Access:  public


[ Top ]
Constructor MasterItemType  [line 41]

  MasterItemType MasterItemType( )

Empty Constructor.



[ Top ]
countItemtypes  [line 141]

  int countItemtypes( )

Returns how many Itemtypes are known by the System.


API Tags:
Return:  the number of items known by the System


[ Top ]
getClassForItemType  [line 109]

  Item getClassForItemType( $itemtype, $itemid, [ $treetype = ITEM_LOAD_FULL], [ $languageID = '']  )

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

Parameters:
   $itemtype: 
   $itemid: 
   $treetype: 
   $languageID: 

API Tags:
Return:  a new instance (subclass of Item) for the given Itemtype ID


[ Top ]
getClassNameForItemType  [line 100]

  String getClassNameForItemType( $itemtype  )

Returns the Classname for the given Itentype ID.

Parameters:
   $itemtype: 

API Tags:
Return:  the Classname for the Itemtype ID


[ Top ]
getCommandForItemType  [line 56]

  String getCommandForItemType( $itemtype  )

Return the Command for the given Itemtype ID.

Parameters:
   $itemtype: 

API Tags:
Return:  the Command


[ Top ]
getDirectoryForItemType  [line 47]

  String getDirectoryForItemType( $itemtype  )

Return the Directory for the given Itemtype ID.

Parameters:
   $itemtype: 

API Tags:
Return:  the Directory Name


[ Top ]
getItemTypeForCommand  [line 86]

  int getItemTypeForCommand( $cmd  )

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

Parameters:
   $cmd: 

API Tags:
Return:  the Itemtype ID or null


[ Top ]