installupdate.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 the agents


Functions

pluginFusioninventoryGetCurrentVersion()

pluginFusioninventoryGetCurrentVersion() : string

Get the current version of the plugin

Returns

string

pluginFusioninventoryFindFiles()

pluginFusioninventoryFindFiles(string  $dir = '.', string  $pattern = '/./') : array

Find files recursively filtered with pattern (grabbed from http://rosettacode.org/wiki/Walk_a_directory/Recursively#PHP)

Parameters

string $dir
string $pattern

Returns

array

pluginFusioninventoryFlatArray()

pluginFusioninventoryFlatArray(array  $array) : array

Flat a multi-dimensional array

Parameters

array $array

Returns

array

pluginFusioninventoryUpdate()

pluginFusioninventoryUpdate(string  $current_version, string  $migrationname = 'Migration') 

The main function to update the plugin FusionInventory

Parameters

string $current_version
string $migrationname

do_agent_migration()

do_agent_migration(object  $migration) : array

Manage the agent part migration

Parameters

object $migration

Returns

array

do_config_migration()

do_config_migration(object  $migration) : array

Manage the configuration part migration

Parameters

object $migration

Returns

array

do_entities_migration()

do_entities_migration(object  $migration) 

Manage the entities part migration

Parameters

object $migration

do_iprange_migration()

do_iprange_migration(object  $migration) : array

Manage the IP range part migration

Parameters

object $migration

Returns

array

do_locks_migration()

do_locks_migration(object  $migration) 

Manage the locks part migration

Parameters

object $migration

do_iprangeconfigsecurity_migration()

do_iprangeconfigsecurity_migration(object  $migration) 

Manage the SNMP communities linked to IP range part migration

Parameters

object $migration

do_mapping_migration()

do_mapping_migration(object  $migration) 

Manage the mapping part migration

Parameters

object $migration

do_profile_migration()

do_profile_migration(object  $migration) 

Manage the profile part migration

Parameters

object $migration

do_timeslot_migration()

do_timeslot_migration(object  $migration) 

Manage the timeslot (of task) part migration

Parameters

object $migration

do_unmanaged_migration()

do_unmanaged_migration(object  $migration) 

Manage the unmanaged devices part migration

Parameters

object $migration

do_ignoredimport_migration()

do_ignoredimport_migration(object  $migration) 

Manage the ignored import rules part migration

Parameters

object $migration

do_blacklist_migration()

do_blacklist_migration(object  $migration) 

Manage the computer blacklist part migration

Parameters

object $migration

do_rulematchedlog_migration()

do_rulematchedlog_migration(object  $migration) 

Manage the rules matched log part migration

Parameters

object $migration

do_antivirus_migration()

do_antivirus_migration(object  $migration) 

Manage the antivirus part migration

Parameters

object $migration

do_computerbattery_migration()

do_computerbattery_migration(object  $migration) 

Manage the computer batteries part migration

Parameters

object $migration

do_computerchemistry_migration()

do_computerchemistry_migration(object  $migration) 

Manage the computer chemistry part migration

Parameters

object $migration

do_computercomputer_migration()

do_computercomputer_migration(object  $migration) 

Manage the computer extended part migration

Parameters

object $migration

do_computerstat_migration()

do_computerstat_migration(object  $migration) 

Manage the computer inventory staistics part migration

Parameters

object $migration

do_computerstorage_migration()

do_computerstorage_migration(object  $migration) 

Manage the computer storage part migration

Parameters

object $migration

do_configlogfield_migration()

do_configlogfield_migration(object  $migration) 

Manage the configuration log fields (for network equipment and printer) part migration

Parameters

object $migration

do_networkport_migration()

do_networkport_migration(object  $migration) 

Manage the network port part migration

Parameters

object $migration

do_printer_migration()

do_printer_migration(object  $migration) 

Manage the printer part migration

Parameters

object $migration

do_networkequipment_migration()

do_networkequipment_migration(object  $migration) 

Manage the network equipment part migration

Parameters

object $migration

do_configsecurity_migration()

do_configsecurity_migration(object  $migration) 

Manage the Config security (SNMP anthentication) part migration

Parameters

object $migration

do_statediscovery_migration()

do_statediscovery_migration(object  $migration) 

Manage the discovery state part migration

Parameters

object $migration

do_computerlicense_migration()

do_computerlicense_migration(object  $migration) 

Manage the computer license part migration

Parameters

object $migration

do_computerremotemgmt_migration()

do_computerremotemgmt_migration(object  $migration) 

Manage the computer remote management part migration

Parameters

object $migration

do_computerarch_migration()

do_computerarch_migration(object  $migration) 

Manage the computer architecture part migration

Parameters

object $migration

do_computeroperatingsystem_migration()

do_computeroperatingsystem_migration(object  $migration) 

Manage the computer operating system part migration

Parameters

object $migration

do_deployfile_migration()

do_deployfile_migration(object  $migration) 

Manage the deploy files part migration

Parameters

object $migration

do_deploypackage_migration()

do_deploypackage_migration(object  $migration) 

Manage the deploy package part migration

Parameters

object $migration

do_deploymirror_migration()

do_deploymirror_migration(object  $migration) 

Manage the deploy mirror part migration

Parameters

object $migration

do_deploygroup_migration()

do_deploygroup_migration(object  $migration) 

Manage the deploy group part migration

Parameters

object $migration

do_dblocks_migration()

do_dblocks_migration(object  $migration) 

Manage the database locks part migration

Parameters

object $migration

do_credentialESX_migration()

do_credentialESX_migration(object  $migration) 

Manage the ESX credentials part migration

Parameters

object $migration

do_collect_migration()

do_collect_migration(object  $migration) 

Manage the collect part migration

Parameters

object $migration

do_snmpmodel_migration()

do_snmpmodel_migration(object  $migration) 

Manage the SNMP models part migration

Parameters

object $migration

do_rule_migration()

do_rule_migration(object  $migration) 

Manage the rules part migration

Parameters

object $migration

do_task_migration()

do_task_migration(object  $migration) 

Manage the task part migration

Parameters

object $migration

doDynamicDataSearchParamsMigration()

doDynamicDataSearchParamsMigration() 

Migrate search params from the old system to the new one As search engine integration has been improved with GLPI 0.85

migrationDynamicGroupFields()

migrationDynamicGroupFields(array  $fields) : string

Migration of one dynamic group

Parameters

array $fields

search paramas in old format (serialized)

Returns

string —

search paramas in new format (serialized)

changeDisplayPreference()

changeDisplayPreference(string  $olditemtype, string  $newitemtype) 

Manage the display preference part migration

Parameters

string $olditemtype
string $newitemtype

pluginFusioninventoryUpdatemapping()

pluginFusioninventoryUpdatemapping() 

Manage the update of mapping part migration

update213to220_ConvertField()

update213to220_ConvertField(object  $migration) 

Manage the update from 2.13 to 2.20 version (very old) part migration

Parameters

object $migration

migrateTablesFusionInventory()

migrateTablesFusionInventory(object  $migration, array  $a_table) 

Manage the migration of MySQL tables / fields

Parameters

object $migration
array $a_table

migrateTablesFromFusinvDeploy()

migrateTablesFromFusinvDeploy(object  $migration) 

Migrate tables from plugin fusinvdeploy to fusioninventory all datas in exploded tables are merged and stored in json in order table

Parameters

object $migration