Property | Type | Description | |
---|---|---|---|
$dohistory | From CommonDBTM | ||
$rightname |
Property | Type | Description | |
---|---|---|---|
$entities | |||
$groups | |||
$profiles | |||
$users | For visibility checks |
Method | Description | |
---|---|---|
addVisibilityJoins ( $forceall = false ) : string | Return visibility joins to add to SQL | |
addVisibilityRestrict ( ) : string | Return visibility SQL restriction to add | |
canCreate ( ) | ||
canCreateItem ( ) | ||
canPurge ( ) | ||
canPurgeItem ( ) | ||
canUpdate ( ) | ||
canUpdateItem ( ) | ||
canView ( ) | ||
canViewItem ( ) | ||
cleanDBonPurge ( ) | ||
countVisibilities ( ) | ||
defineTabs ( $options = [] ) | ||
displayPlanningItem ( array $val, $who, $type = "", $complete ) : Nothing | Display a Planning Item | |
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getAlreadyPlannedInformation ( array $val ) : Already | Display a Planning Item | |
getRights ( $interface = 'central' ) | ||
getSearchOptions ( ) | ||
getSpecificValueToDisplay ( $field, $values, array $options = [] ) | ||
getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) | ||
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTypeName ( $nb ) | ||
haveVisibilityAccess ( ) : boolean | Is the login user have access to reminder based on visibility configuration | |
populatePlanning ( $options = [] ) : array | Populate the planning with planned reminder | |
post_addItem ( ) | ||
post_getEmpty ( ) | ||
post_getFromDB ( ) | ||
post_updateItem ( $history = 1 ) | ||
pre_updateInDB ( ) | ||
prepareInputForAdd ( $input ) | ||
prepareInputForUpdate ( $input ) | ||
showForm ( $ID, $options = [] ) | Print the reminder form | |
showListForCentral ( $personal = true ) : Nothing | Show list for central view | |
showVisibility ( ) | Show visibility config for a reminder |
static public addVisibilityJoins ( $forceall = false ) : string | ||
$forceall | force all joins (false by default) | |
return | string | joins to add |
static public addVisibilityRestrict ( ) : string | ||
return | string | restrict to add |
static public displayPlanningItem ( array $val, $who, $type = "", $complete ) : Nothing | ||
$val | array | array of the item to display |
$who | ID of the user (0 if all) | |
$type | position of the item in the time block (in, through, begin or end) (default '') | |
$complete | complete display (more details) (default 0) | |
return | Nothing | (display function) |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI | CommonGLPI object |
$tabnum | (default 1) | |
$withtemplate | (default 0) |
static public getAlreadyPlannedInformation ( array $val ) : Already | ||
$val | array | Array of the item to display |
return | Already | planned information |
static public getSpecificValueToDisplay ( $field, $values, array $options = [] ) | ||
$field | ||
$values | ||
$options | array | array |
static public getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) | ||
$field | ||
$name | (default '') | |
$values | (default '') | |
$options | array | array |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
public haveVisibilityAccess ( ) : boolean | ||
return | boolean |
static public populatePlanning ( $options = [] ) : array | ||
$options | array of possible options: - who ID of the user (0 = undefined) - who_group ID of the group of users (0 = undefined) - begin Date - end Date - color - event_type_color - check_planned (boolean) - display_done_events (boolean) | |
return | array | of planning item |
public showForm ( $ID, $options = [] ) | ||
$ID | integer Id of the item to print | |
$options | array of possible options: - target filename : where to go when done. - from_planning_ajax : set to disable planning form part |
static public showListForCentral ( $personal = true ) : Nothing | ||
$personal | boolean : display reminders created by me ? (true by default) | |
return | Nothing | (display function) |