PluginFlyvemdmFleet - btry/glpi-plugin GitHub Wiki

PluginFlyvemdmFleet

Properties

$rightname

public string $rightname = 'flyvemdm:fleet'
  • Visibility: public
  • This property is static.

$dohistory

public boolean $dohistory = true
  • Visibility: public

$usenotepad

protected boolean $usenotepad = true
  • Visibility: protected

$usenotepadRights

protected boolean $usenotepadRights = true
  • Visibility: protected

$deleteDefaultFleet

protected mixed $deleteDefaultFleet = false
  • Visibility: protected

$types

public mixed $types = array('Phone')
  • Visibility: public
  • This property is static.

Methods

getTypeName

mixed PluginFlyvemdmFleet::getTypeName($nb)

Localized name of the type

  • Visibility: public
  • This method is static.

Arguments

  • $nb mixed - <p>integer number of item in the type (default 0)</p>

getMenuPicture

string PluginFlyvemdmFleet::getMenuPicture()

Returns the picture file for the menu

  • Visibility: public
  • This method is static.

defineTabs

mixed PluginFlyvemdmFleet::defineTabs($options)
  • Visibility: public

Arguments

  • $options mixed

showForm

mixed PluginFlyvemdmFleet::showForm($ID, $options)

Show form for edition

  • Visibility: public

Arguments

  • $ID mixed
  • $options mixed

prepareInputForAdd

mixed PluginFlyvemdmFleet::prepareInputForAdd($input)
  • Visibility: public

Arguments

  • $input mixed

prepareInputForUpdate

mixed PluginFlyvemdmFleet::prepareInputForUpdate($input)
  • Visibility: public

Arguments

  • $input mixed

pre_deleteItem

boolean PluginFlyvemdmFleet::pre_deleteItem()

Actions done before the DELETE of the item in the database / Maybe used to add another check for deletion

  • Visibility: public

getSearchOptions

mixed PluginFlyvemdmFleet::getSearchOptions()
  • Visibility: public

getTopic

mixed PluginFlyvemdmNotifiable::getTopic()

Gets the topic related to the notifiable

post_addItem

\nothing PluginFlyvemdmFleet::post_addItem()

Actions done after the ADD of the item in the database

  • Visibility: public

post_deleteItem

mixed PluginFlyvemdmFleet::post_deleteItem()
  • Visibility: public

post_purgeItem

mixed PluginFlyvemdmFleet::post_purgeItem()
  • Visibility: public

cleanDBonPurge

mixed PluginFlyvemdmFleet::cleanDBonPurge()
  • Visibility: public

getAgents

array PluginFlyvemdmNotifiable::getAgents()

get the agents related to the notifiable

getFleet

\PluginFlyvemdmFleet PluginFlyvemdmNotifiable::getFleet()

get the fleet attached to the notifiable

getPackages

array PluginFlyvemdmNotifiable::getPackages()

get the applications related to the notifiable

getFiles

array PluginFlyvemdmNotifiable::getFiles()

get the files related to the notifiable

getFromDBByDefaultForEntity

\PluginFlyvemdmFleet|null PluginFlyvemdmFleet::getFromDBByDefaultForEntity(string $entityId)

Gets the default fleet for an entity

  • Visibility: public

Arguments

  • $entityId string - <p>ID of the entoty to search in</p>

getDefaultFleet

\PluginFlyvemdmFleet|null PluginFlyvemdmFleet::getDefaultFleet(string $entityId)

Gets the default fleet for an entity

  • Visibility: public
  • This method is static.

Arguments

  • $entityId string - <p>ID of the entoty to search in</p>

notify

mixed PluginFlyvemdmNotifiable::notify(string $topic, string $mqttMessage, \number $qos, \number $retain)

Send a MQTT message

Arguments

  • $topic string
  • $mqttMessage string
  • $qos number
  • $retain number

hook_entity_add

mixed PluginFlyvemdmFleet::hook_entity_add(\CommonDBTM $item)

create folders and initial setup of the entity related to MDM

  • Visibility: public

Arguments

  • $item CommonDBTM

hook_entity_purge

mixed PluginFlyvemdmFleet::hook_entity_purge(\CommonDBTM $item)

delete fleets in the entity being purged

  • Visibility: public

Arguments

  • $item CommonDBTM
⚠️ **GitHub.com Fallback** ⚠️