"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "inc/devicememory.class.php" between
glpi-9.3.3.tgz and glpi-9.4.0.tgz

About: GLPI is an IT and asset management software (Information Resource Manager).

devicememory.class.php  (glpi-9.3.3.tgz):devicememory.class.php  (glpi-9.4.0.tgz)
skipping to change at line 207 skipping to change at line 207
* @since 0.84 * @since 0.84
**/ **/
function getImportCriteria() { function getImportCriteria() {
return ['designation' => 'equal', return ['designation' => 'equal',
'devicememorytypes_id' => 'equal', 'devicememorytypes_id' => 'equal',
'manufacturers_id' => 'equal', 'manufacturers_id' => 'equal',
'frequence' => 'delta:10']; 'frequence' => 'delta:10'];
} }
public static function rawSearchOptionsToAdd($class, $main_joinparams) {
$tab = [];
$tab[] = [
'id' => '110',
'table' => 'glpi_devicememories',
'field' => 'designation',
'name' => __('Memory type'),
'forcegroupby' => true,
'usehaving' => true,
'massiveaction' => false,
'datatype' => 'string',
'joinparams' => [
'beforejoin' => [
'table' => 'glpi_items_devicememories',
'joinparams' => $main_joinparams
]
]
];
$tab[] = [
'id' => '111',
'table' => 'glpi_items_devicememories',
'field' => 'size',
'unit' => 'auto',
'name' => __('Memory'),
'forcegroupby' => true,
'usehaving' => true,
'datatype' => 'number',
'width' => 100,
'massiveaction' => false,
'joinparams' => $main_joinparams,
'computation' => '(SUM(TABLE.`size`) / COUNT(TABLE.`id`))
* COUNT(DISTINCT TABLE.`id`)'
];
return $tab;
}
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 38 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)