메소드
설명
addNewCondition ( $condition )
dropdownIcons ( $myname , $value , $store_path , $display = true ) : nothing
Make a select box for icons
dropdownUsedItemTypes ( $name , $itemtype_ref , $options = [] ) : nothing
Make a select box for device type
getDeviceItemTypes ( ) : array
Get the Device list name the user is allowed to edit
getDropdownArrayNames ( $table , $ids ) : array
Get values of a dropdown for a list of item
getDropdownName ( $table , $id , $withcomment , $translate = true, $tooltip = true ) : string
Get the value of a dropdown
getGlobalSwitch ( $value ) : the
Get the label associated with a management type
getLanguageName ( $value )
getStandardDropdownItemTypes ( ) : array
Get the dropdown list name the user is allowed to edit
getValueWithUnit ( $value , $unit )
Get value with unit / Automatic management of standar unit (year, month, %, .
getYesNo ( $value ) : string
Get Yes No string
import ( $itemtype , $input ) : the
Import a dropdown - check if already exists
importExternal ( $itemtype , $value , $entities_id , $external_params = [], $comment = '', $add = true ) : integer
Import a value in a dropdown table.
show ( $itemtype , $options = [] ) : boolean
Print out an HTML "" for a dropdown with preselected value
showAdvanceDateRestrictionSwitch ( $enabled )
Toggle view in LDAP user import/synchro between no restriction and date restriction
showAllItems ( $myname , $value_type , $value , $entity_restrict , $types = '', $onlyglobal = false, $checkright = false, $itemtypename = 'itemtype' ) : nothing
Make a select box for all items
showFromArray ( $name , array $elements , $options = [] )
Dropdown of values in an array
showGMT ( $name , $value = '' )
Dropdown for GMT selection
showGlobalSwitch ( $ID , $attrs = [] )
Dropdown for global item management
showHours ( $name , $options = [] ) : Nothing
Print a select with hours
showInteger ( $myname , $value , $min , $max = 100, $step = 1, $toadd = [], $options = [] )
Dropdown integers
showItemType ( $types = '', $options = [] ) : integer
show a dropdown to selec a type
showItemTypeList ( $optgroup )
Display a list to select a itemtype with link to search form
showItemTypeMenu ( $title , $optgroup , $value = '' )
Display a menu to select a itemtype which open the search form
showItemTypes ( $name , $types = [], $options = [] ) : nothing
Make a select box for device type
showLanguages ( $myname , $options = [] )
Dropdown available languages
showListLimit ( $onchange = '' )
show dropdown to select list limit
showNumber ( $myname , $options = [] )
Dropdown numbers
showOutputFormat ( )
show dropdown for output format
showPrivatePublicSwitch ( $is_private , $entity , $is_recursive )
Private / Public switch for items which may be assign to a user and/or an entity
showSelectItemFromItemtypes ( array $options = [] ) : randomized
Make a select box for all items
showTimeStamp ( $myname , $options = [] )
Dropdown integers
showYesNo ( $name , $value , $restrict_to , $params = [] ) : rand
Make a select box for a boolean choice (Yes/No) or display a checkbox. Add a
'use_checkbox' = true to the $params array to display a checkbox instead a select box