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

List of all members.

Public Member Functions

 getForbiddenStandardMassiveAction ()
 getName ($options=array())
 getTabNameForItem (CommonGLPI $item, $withtemplate=0)
 Get Tab Name used for itemtype.
 post_purgeItem ()
 Actions done after the PURGE of the item in the database.
 getMandatoryFields ($ID, $withtypeandcategory=true)
 Get mandatory 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 mandatory fields.

Public Attributes

 $dohistory = true
 Make an history of the changes.

Static Public Attributes

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

Detailed Description

Mandatory fields for ticket template class since version 0.83.

Definition at line 40 of file tickettemplatemandatoryfield.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 98 of file tickettemplatemandatoryfield.class.php.

References showForTicketTemplate().

Since:
version 0.84

Reimplemented from CommonDBTM.

Definition at line 56 of file tickettemplatemandatoryfield.class.php.

getMandatoryFields ( ID,
withtypeandcategory = true 
)

Get mandatory fields for a template.

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

Definition at line 141 of file tickettemplatemandatoryfield.class.php.

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

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

Reimplemented from CommonDBTM.

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

References CommonDBTM\$fields.

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 81 of file tickettemplatemandatoryfield.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 48 of file tickettemplatemandatoryfield.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 105 of file tickettemplatemandatoryfield.class.php.

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

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

Print the mandatory fields.

Since:
version 0.83
Parameters:
$ttTicket Template
$withtemplateboolean Template or basic item (default '')
Returns:
Nothing (call to classes members)

Definition at line 173 of file tickettemplatemandatoryfield.class.php.

References $DB, CommonDBTM\$fields, $query, $rand, $result, $used, $val, __(), _e(), CommonDBTM\can(), Html\closeForm(), TicketTemplate\getAllowedFieldsNames(), CommonDBTM\getFromDB(), TicketTemplate\getSimplifiedInterfaceFields(), getTypeName(), Html\openMassiveActionsForm(), Dropdown\showFromArray(), and Html\showMassiveActions().

Referenced by displayTabContentForItem().


Member Data Documentation

$dohistory = true

Make an history of the changes.

Reimplemented from CommonDBTM.

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

$items_id = 'tickettemplates_id' [static]

Reimplemented from CommonDBChild.

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

$itemtype = 'TicketTemplate' [static]

Reimplemented from CommonDBChild.

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


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