hook.php

FusionInventory

Copyright (C) 2010-2016 by the FusionInventory Development Team.

http://www.fusioninventory.org/ https://github.com/fusioninventory/fusioninventory-for-glpi http://forge.fusioninventory.org/


LICENSE

This file is part of FusionInventory project.

FusionInventory is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

FusionInventory is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with FusionInventory. If not, see http://www.gnu.org/licenses/.


This file is used to manage hooks


Functions

plugin_fusioninventory_getAddSearchOptions()

plugin_fusioninventory_getAddSearchOptions(string  $itemtype) : array

Add search options for GLPI objects

Parameters

string $itemtype

Returns

array

plugin_fusioninventory_giveItem()

plugin_fusioninventory_giveItem(string  $type, integer  $id, array  $data, integer  $num) : string

Manage search give items (display information in the search page)

Parameters

string $type
integer $id
array $data
integer $num

Returns

string

plugin_fusioninventory_searchOptionsValues()

plugin_fusioninventory_searchOptionsValues(object  $item) : boolean

Manage search options values

Parameters

object $item

Returns

boolean

plugin_fusioninventory_getDropdown()

plugin_fusioninventory_getDropdown() : array

Define Dropdown tables to be manage in GLPI

Returns

array

cron_plugin_fusioninventory()

cron_plugin_fusioninventory() : integer

Manage GLPI cron

Returns

integer

plugin_fusioninventory_install()

plugin_fusioninventory_install() : boolean

Manage the installation process

Returns

boolean

plugin_fusioninventory_uninstall()

plugin_fusioninventory_uninstall() : boolean

Manage the uninstallation of the plugin

Returns

boolean

plugin_fusioninventory_MassiveActions()

plugin_fusioninventory_MassiveActions(string  $type) : array

Add massive actions to GLPI itemtypes

Parameters

string $type

Returns

array

plugin_fusioninventory_MassiveActionsFieldsDisplay()

plugin_fusioninventory_MassiveActionsFieldsDisplay(array  $options = array()) : boolean

Manage massice actions fields display

Parameters

array $options

Returns

boolean

plugin_fusioninventory_addSelect()

plugin_fusioninventory_addSelect(string  $type, integer  $id, integer  $num) : string

Manage Add select to search query

Parameters

string $type
integer $id
integer $num

Returns

string

plugin_fusioninventory_forceGroupBy()

plugin_fusioninventory_forceGroupBy(string  $type) : boolean

Manage group by in search query

Parameters

string $type

Returns

boolean

plugin_fusioninventory_addLeftJoin()

plugin_fusioninventory_addLeftJoin(string  $itemtype, string  $ref_table, string  $new_table, string  $linkfield, string  $already_link_tables) : string

Manage left join in search query

Parameters

string $itemtype
string $ref_table
string $new_table
string $linkfield
string $already_link_tables

Returns

string

plugin_fusioninventory_addOrderBy()

plugin_fusioninventory_addOrderBy(string  $type, integer  $id, string  $order, integer  $key) : string

Manage order in search query

Parameters

string $type
integer $id
string $order
integer $key

Returns

string

plugin_fusioninventory_addDefaultWhere()

plugin_fusioninventory_addDefaultWhere(string  $type) : string

Add where in search query

Parameters

string $type

Returns

string

plugin_fusioninventory_addWhere()

plugin_fusioninventory_addWhere(string  $link, string  $nott, string  $type, integer  $id, string  $val) : string

Manage where in search query

Parameters

string $link
string $nott
string $type
integer $id
string $val

Returns

string

plugin_pre_item_update_fusioninventory()

plugin_pre_item_update_fusioninventory(object  $parm) 

Manage pre-item update an item

Parameters

object $parm

plugin_pre_item_purge_fusioninventory()

plugin_pre_item_purge_fusioninventory(object  $parm) : object

Manage pre-item purge an item

Parameters

object $parm

Returns

object

plugin_pre_item_delete_fusioninventory()

plugin_pre_item_delete_fusioninventory(object  $parm) : object

Manage pre-item delete an item

Parameters

object $parm

Returns

object

plugin_item_update_fusioninventory()

plugin_item_update_fusioninventory(object  $parm) 

Manage when update an item

Parameters

object $parm

plugin_item_add_fusioninventory()

plugin_item_add_fusioninventory(object  $parm) : object

Manage when add an item

Parameters

object $parm

Returns

object

plugin_item_purge_fusioninventory()

plugin_item_purge_fusioninventory(object  $parm) : object

Manage when purge an item

Parameters

object $parm

Returns

object

plugin_item_transfer_fusioninventory()

plugin_item_transfer_fusioninventory(object  $parm) : boolean

Manage when transfer an item

Parameters

object $parm

Returns

boolean

plugin_fusioninventory_registerMethods()

plugin_fusioninventory_registerMethods() 

Register the webservices methods

plugin_fusioninventory_getDatabaseRelations()

plugin_fusioninventory_getDatabaseRelations() : array

Define dropdown relations

Returns

array