grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026. -------------------------------------------------------------------------- */ /** @file * @brief */ if (!defined('GLPI_ROOT')) { die("Sorry. You can't access this file directly"); } /// NetworkPortAggregate class : aggregate instantiation of NetworkPort. Aggregate can represent a /// trunk on switch, specific port under that regroup several ethernet ports to manage Ethernet /// Bridging. /// @since 0.84 class NetworkPortAggregate extends NetworkPortInstantiation { static function getTypeName($nb=0) { return __('Aggregation port'); } function prepareInputForAdd($input) { if ((isset($input['networkports_id_list'])) && is_array($input['networkports_id_list'])) { $input['networkports_id_list'] = exportArrayToDB($input['networkports_id_list']); } else { $input['networkports_id_list'] = exportArrayToDB(array()); } return parent::prepareInputForAdd($input); } function prepareInputForUpdate($input) { if ((isset($input['networkports_id_list'])) && is_array($input['networkports_id_list'])) { $input['networkports_id_list'] = exportArrayToDB($input['networkports_id_list']); } else { $input['networkports_id_list'] = exportArrayToDB(array()); } return parent::prepareInputForAdd($input); } function showInstantiationForm(NetworkPort $netport, $options=array(), $recursiveItems) { if (isset($this->fields['networkports_id_list']) && is_string($this->fields['networkports_id_list'])) { $this->fields['networkports_id_list'] = importArrayFromDB($this->fields['networkports_id_list']); } echo "