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:
API Tags:
| Return: | the Columns to be selected as Comma separated List |
| Access: | public |
MasterItemType MasterItemType(
)
|
|
Empty Constructor.
Returns how many Itemtypes are known by the System.
API Tags:
| Return: | the number of items known by the System |
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 |
String getClassNameForItemType(
$itemtype
)
|
|
Returns the Classname for the given Itentype ID.
Parameters:
API Tags:
| Return: | the Classname for the Itemtype ID |
String getCommandForItemType(
$itemtype
)
|
|
Return the Command for the given Itemtype ID.
Parameters:
API Tags:
String getDirectoryForItemType(
$itemtype
)
|
|
Return the Directory for the given Itemtype ID.
Parameters:
API Tags:
| Return: | the Directory Name |
int getItemTypeForCommand(
$cmd
)
|
|
Get the Itemtype ID for the given Command (or null).
Parameters:
API Tags:
| Return: | the Itemtype ID or null |