Property | Type | Description | |
---|---|---|---|
$dohistory | |||
$items_id | |||
$itemtype | From CommonDBChild |
Method | Description | |
---|---|---|
cloneProject ( $oldid, $newid ) | Duplicate all costs from a project template to its clone | |
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getLastCostForProject ( $projects_id ) | Get last datas for a project | |
getSearchOptions ( ) | ||
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTypeName ( $nb ) | ||
initBasedOnPrevious ( ) | Init cost for creation based on previous cost | |
prepareInputForAdd ( $input ) | ||
prepareInputForUpdate ( $input ) | ||
showForProject ( Project $project, $withtemplate = '' ) : Nothing | Print the project costs | |
showForm ( $ID, $options = [] ) | Print the project cost form |
static public cloneProject ( $oldid, $newid ) | ||
$oldid | ||
$newid |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI | CommonGLPI object |
$tabnum | (default 1) | |
$withtemplate | (default 0) |
public getLastCostForProject ( $projects_id ) | ||
$projects_id | integer ID of the project |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
public initBasedOnPrevious ( ) |
static public showForProject ( Project $project, $withtemplate = '' ) : Nothing | ||
$project | Project | Project object |
$withtemplate | boolean Template or basic item (default '') | |
return | Nothing | (call to classes members) |
public showForm ( $ID, $options = [] ) | ||
$ID | integer ID of the item | |
$options | array options used |