Predefined fields for ticket template class since version 0.83. More...

List of all members.

Public Member Functions

 getForbiddenStandardMassiveAction ()
 getName ($options=array())
 prepareInputForAdd ($input)
 post_purgeItem ()
 Actions done after the PURGE of the item in the database.
 getTabNameForItem (CommonGLPI $item, $withtemplate=0)
 Get Tab Name used for itemtype.
 getPredefinedFields ($ID, $withtypeandcategory=false)
 Get predefined fields for a template.

Static Public Member Functions

static getTypeName ($nb=0)
 Return the localized name of the current Type Should be overloaded in each new class.
static displayTabContentForItem (CommonGLPI $item, $tabnum=1, $withtemplate=0)
 show Tab content
static showForTicketTemplate (TicketTemplate $tt, $withtemplate='')
 Print the predefined fields.

Public Attributes

 $dohistory = true
 Make an history of the changes.

Static Public Attributes

static $itemtype = 'TicketTemplate'
static $items_id = 'tickettemplates_id'

Detailed Description

Predefined fields for ticket template class since version 0.83.

Definition at line 40 of file tickettemplatepredefinedfield.class.php.


Member Function Documentation

static displayTabContentForItem ( CommonGLPI item,
tabnum = 1,
withtemplate = 0 
) [static]

show Tab content

Since:
version 0.83
Parameters:
$itemCommonGLPI object for which the tab need to be displayed
$tabnuminteger tab number (default 1)
$withtemplateboolean is a template object ? (default 0)
Returns:
true

Reimplemented from CommonGLPI.

Definition at line 139 of file tickettemplatepredefinedfield.class.php.

References showForTicketTemplate().

Since:
version 0.84

Reimplemented from CommonDBTM.

Definition at line 51 of file tickettemplatepredefinedfield.class.php.

getName ( options = array())
See also:
CommonDBTM::getName()
Since:
version 0.84

Reimplemented from CommonDBTM.

Definition at line 69 of file tickettemplatepredefinedfield.class.php.

References CommonDBTM\$fields.

getPredefinedFields ( ID,
withtypeandcategory = false 
)

Get predefined fields for a template.

Since:
version 0.83
Parameters:
$IDinteger the template ID
$withtypeandcategoryboolean with type and category (false by default)
Returns:
an array of predefined fields

Definition at line 156 of file tickettemplatepredefinedfield.class.php.

References $DB, CommonDBTM\$fields, $result, $rule, and $sql.

getTabNameForItem ( CommonGLPI item,
withtemplate = 0 
)

Get Tab Name used for itemtype.

NB : Only called for existing object Must check right on what will be displayed + template

Since:
version 0.83
Parameters:
$itemCommonDBTM object for which the tab need to be displayed
$withtemplateboolean is a template object ? (default 0)
Returns:
string tab name

Reimplemented from CommonGLPI.

Definition at line 122 of file tickettemplatepredefinedfield.class.php.

References $_SESSION, countElementsInTable(), CommonGLPI\createTabEntry(), CommonDBTM\getTable(), CommonGLPI\getType(), getTypeName(), and Session\haveRight().

static getTypeName ( nb = 0) [static]

Return the localized name of the current Type Should be overloaded in each new class.

Returns:
string

Reimplemented from CommonGLPI.

Definition at line 59 of file tickettemplatepredefinedfield.class.php.

References $nb, and _n().

Referenced by getTabNameForItem(), and showForTicketTemplate().

Actions done after the PURGE of the item in the database.

Returns:
nothing

Reimplemented from CommonDBTM.

Definition at line 96 of file tickettemplatepredefinedfield.class.php.

References $DB, $query, $result, and $ticket.

prepareInputForAdd ( input)
Since:
version 0.84

Reimplemented from CommonDBChild.

Definition at line 81 of file tickettemplatepredefinedfield.class.php.

References $input.

static showForTicketTemplate ( TicketTemplate tt,
withtemplate = '' 
) [static]

Member Data Documentation

$dohistory = true

Make an history of the changes.

Reimplemented from CommonDBTM.

Definition at line 45 of file tickettemplatepredefinedfield.class.php.

$items_id = 'tickettemplates_id' [static]

Reimplemented from CommonDBChild.

Definition at line 44 of file tickettemplatepredefinedfield.class.php.

$itemtype = 'TicketTemplate' [static]

Reimplemented from CommonDBChild.

Definition at line 43 of file tickettemplatepredefinedfield.class.php.


The documentation for this class was generated from the following file: