\PluginFusioninventoryTimeslotEntry

Manage the hours in the timeslot.

Summary

Methods
Properties
Constants
getTypeName()
getSearchOptions()
formEntry()
formDeleteEntry()
showTimeSlot()
addEntry()
mergePeriods()
$dohistory
$rightname
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$dohistory

$dohistory : boolean

We activate the history.

Type

boolean

$rightname

$rightname : string

The right name for this class

Type

string

Methods

getTypeName()

getTypeName(integer  $nb) : string

Get name of this type by language of the user connected

Parameters

integer $nb

number of elements

Returns

string —

name of this type

getSearchOptions()

getSearchOptions() : array

Get search function for the class

Returns

array

formEntry()

formEntry(integer  $timeslots_id) 

Display form to add a new time entry in timeslot

Parameters

integer $timeslots_id

formDeleteEntry()

formDeleteEntry(integer  $timeslots_id) 

Display delete form

Parameters

integer $timeslots_id

showTimeSlot()

showTimeSlot(integer  $timeslots_id) 

Display timeslot graph

Parameters

integer $timeslots_id

addEntry()

addEntry(array  $data) 

Add a new entry

Parameters

array $data

mergePeriods()

mergePeriods(array  $periods) : array

Merge 2 periods when 2 entries have a same time part

Parameters

array $periods

Returns

array